package com.aspose.cells;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

final class zaue {
   private static float a = 0.05F;
   private static float b = 0.6F;

   static void a(zn var0, com.aspose.cells.b.a.b.zp var1, zbcp var2) throws Exception {
      zif var3 = var2.v();
      List var4 = var3.z().a(var2.af(), new int[]{var2.m()});
      int var5 = var3.z().a(var2, var2.af(), new int[]{var2.m()});
      if (var5 == 0) {
         com.aspose.cells.b.a.b.zp[] var6;
         switch(var2.m()) {
         case 35:
            a(var0, var3, var1, var4);
            break;
         case 36:
            b(var0, var3, var1, var4);
         case 37:
         case 38:
         case 39:
         case 40:
         case 41:
         case 42:
         case 43:
         case 45:
         case 48:
         default:
            break;
         case 44:
            a(var2.D());
            var6 = new com.aspose.cells.b.a.b.zp[]{var1};
            a(var0, var3, var6, var2);
            var1 = var6[0];
            var3.B().b = new com.aspose.cells.b.a.b.zp(var1.c(), var1.d(), var1.e(), var1.f());
            ziy.a(var0, var3.B());
            b(var0, var3, var1, var2);
            break;
         case 46:
            d(var0, var3, var1, var2);
            break;
         case 47:
            a(var2.D());
            var6 = new com.aspose.cells.b.a.b.zp[]{var1};
            a(var0, var3, var6, var2);
            var1 = var6[0];
            var3.B().b = new com.aspose.cells.b.a.b.zp(var1.c(), var1.d(), var1.e(), var1.f());
            ziy.a(var0, var3.B());
            c(var0, var3, var1, var2);
            break;
         case 49:
            e(var0, var3, var1, var2);
         }
      }

   }

   static void a(zif var0, com.aspose.cells.b.a.b.zp[] var1, zbcp var2) {
      if (var1[0].e() > 0 && var1[0].f() > 0 && var2.ar()) {
         if (var0.B().s()) {
            byte var3 = 9;
            var1[0].a(var1[0].c() + var3);
            var1[0].b(var1[0].d() + var3);
            var1[0].c(var1[0].e() - 2 * var3);
            var1[0].d(var1[0].f() - 2 * var3);
            boolean var4 = false;
            int var5 = var1[0].e();
            if (var1[0].e() > var1[0].f()) {
               var5 = var1[0].f();
            }

            int var7;
            if (var5 < 80) {
               var7 = -zbuk.b((double)((float)(80 - var5) / 100.0F * 6.0F));
            } else if (var5 < 200) {
               var7 = zbuk.a((double)((float)(var5 - 80) / 100.0F * 7.0F));
            } else {
               var7 = zbuk.b((double)((float)(var5 - 80) / 100.0F * 7.0F));
            }

            var1[0].a(var1[0].c() + var7);
            var1[0].b(var1[0].d() + var7);
            var1[0].c(var1[0].e() - 2 * var7);
            var1[0].d(var1[0].f() - 2 * var7);
            byte var6 = 10;
            if (var1[0].e() < var6) {
               var1[0].c(var6);
            }

            if (var1[0].f() < var6) {
               var1[0].d(var6);
            }
         }

      }
   }

   private static void b(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, zbcp var3) throws Exception {
      int var4 = var3.ai();
      double var5 = 0.0D;
      zjf var7 = var3.D();

      for(int var8 = 0; var8 < var7.getCount(); ++var8) {
         var5 += Math.abs(var7.a(var8).v());
      }

      double var50 = (double)((float)var3.U() - 90.0F);
      double var10 = 0.0D;
      double var12 = (double)(90 - var3.U());
      com.aspose.cells.b.a.b.a.ze var14 = new com.aspose.cells.b.a.b.a.ze();
      ArrayList var15 = new ArrayList();
      double var16 = (double)var2.e() / 2.0D / (double)(1.0F + var3.ax() / 100.0F);
      double var18 = (double)var2.c() + (double)var2.e() / 2.0D;
      double var20 = (double)var2.d() + (double)var2.f() / 2.0D;
      com.aspose.cells.b.a.b.zq var22 = new com.aspose.cells.b.a.b.zq((float)(var18 - var16), (float)(var20 - var16), (float)(2.0D * var16), (float)(2.0D * var16));

      for(int var23 = 0; var23 < var7.getCount(); ++var23) {
         zjd var24 = var7.b(var23);
         var10 = a(var7.a(var23).v(), var5);
         com.aspose.cells.b.a.b.a.ze var25 = new com.aspose.cells.b.a.b.a.ze();
         var25.b(var22.f(), var22.g(), var22.h(), var22.i(), (float)var50, (float)(var10 == 0.0D ? 0.01D : var10));
         com.aspose.cells.b.a.b.zq var26 = a(var22, (double)((float)var50), (double)((float)(var10 == 0.0D ? 0.01D : var10)));
         com.aspose.cells.b.a.b.zc var27 = zax.a(var24.i(), var26);

         try {
            com.aspose.cells.b.a.b.zo var28 = new com.aspose.cells.b.a.b.zo((float)var18, (float)var20);
            if (var24.E() > 0.0F) {
               var28 = a(var24, var22, var50, (double)((float)(var10 == 0.0D ? 0.01D : var10)), var12);
               var0.a(var27, var25);
               var14.a(var25, false);
               com.aspose.cells.b.a.a.ze.a(var15, (Object)var25);
               var0.d();
            } else {
               var0.a(var27, var25);
               var14.a(var25, false);
               com.aspose.cells.b.a.a.ze.a(var15, (Object)var25);
            }

            var24.a(new com.aspose.cells.b.a.b.zq(var28.d(), var28.e(), (float)var16, (float)var16));
            var24.b((float)var50);
            var24.c((float)(var50 + var10));
         } finally {
            if (var27 != null) {
               var27.f();
            }

         }

         var50 += var10;
         var12 -= var10;
      }

      var50 = (double)((float)var3.U() - 90.0F);
      var10 = 0.0D;
      com.aspose.cells.b.a.b.zo var51 = com.aspose.cells.b.a.b.zo.a();
      com.aspose.cells.b.a.b.zo var52 = com.aspose.cells.b.a.b.zo.a();
      com.aspose.cells.b.a.b.zo var53 = new com.aspose.cells.b.a.b.zo((float)var18, (float)var20);
      var12 = (double)(90 - var3.U());
      boolean var54 = false;

      for(int var55 = 0; var55 < var7.getCount(); ++var55) {
         zjd var57 = var7.b(var55);
         com.aspose.cells.b.a.b.zm var29 = zama.a(var57.k());

         try {
            var10 = a(var7.a(var55).v(), var5);
            if (var55 == 0) {
               var51 = a(var18, var20, var12, var16);
            }

            var52 = a(var18, var20, var12 - var10, var16);
            if (var57.E() > 0.0F) {
               a(var57, var22, var50, (double)((float)(var10 == 0.0D ? 0.01D : var10)), var12);
            }

            if (var10 == 0.0D && var57.k().e()) {
               var0.b(var29, var53.d(), var53.e(), var52.d(), var52.e());
            } else if (var57.k().e()) {
               com.aspose.cells.b.a.b.a.ze var30 = new com.aspose.cells.b.a.b.a.ze();
               if (var10 == 360.0D) {
                  var30.a(var22, (float)var50, (float)var10);
               } else {
                  var30.a(var53, var51);
                  var30.a(var22, (float)var50, (float)var10);
                  var30.a(var52, var53);
               }

               var0.a(var29, var30);
            }
         } finally {
            if (var29 != null) {
               var29.r();
            }

         }

         if (!var54 && var57.k().f() && var57.E() <= 0.0F) {
            var0.a((com.aspose.cells.b.a.b.zc)(new com.aspose.cells.b.a.b.zu(var57.k().a())), var53.d() - 0.5F, var53.e() - 0.5F, 1.0F, 1.0F, 0.0F, 360.0F);
            var54 = true;
         }

         if (var57.E() > 0.0F) {
            var0.d();
         }

         var50 += var10;
         var12 -= var10;
         var51 = var52;
      }

      var50 = (double)(90.0F - (float)var3.U());
      var10 = 0.0D;
      com.aspose.cells.b.a.b.zo[] var56 = new com.aspose.cells.b.a.b.zo[var7.getCount()];
      zbuk.a(var56);
      float var58 = (float)(var16 * (double)a);
      com.aspose.cells.b.a.b.zq var59 = com.aspose.cells.a.c.zn.a(var14);

      for(int var60 = 0; var60 < var7.getCount(); ++var60) {
         zjd var31 = var7.b(var60);
         zpt var32 = var31.o();
         if (var32.c()) {
            double var33 = var5 == 0.0D ? 0.0D : Math.abs(var7.a(var60).v()) / var5;
            var10 = a(var7.a(var60).v(), var5);
            double var35 = (var50 - var10 / 2.0D) * 3.141592653589793D / 180.0D % 6.283185307179586D;
            double var37 = (double)(var31.E() / 100.0F);
            double var39 = (1.0D + var37) * var16 * Math.cos(var35);
            double var41 = (1.0D + var37) * var16 * Math.sin(var35);
            var32.d = new com.aspose.cells.b.a.b.zo((float)(var18 + var39), (float)(var20 - var41));
            com.aspose.cells.b.a.b.zq var43 = var32.b;
            a(var0, var1, var4, var60, var33, var43, 0.0D);
            if (var3.Q() && !var32.e.b() && !var32.f.b()) {
               a(var0, var59, var15, var3.R(), var43, var32.d, var58);
            }

            var50 -= var10;
         }
      }

   }

   private static void a(zn var0, com.aspose.cells.b.a.b.zq var1, ArrayList var2, zalv var3, com.aspose.cells.b.a.b.zq var4, com.aspose.cells.b.a.b.zo var5, float var6) {
      com.aspose.cells.b.a.b.zo var7 = new com.aspose.cells.b.a.b.zo(var1.f() + var1.h() / 2.0F, var1.g() + var1.i() / 2.0F);
      com.aspose.cells.b.a.b.zo var8 = var5;
      if (var5.d() < var7.d()) {
         var5.a(var5.d() - 1.0F);
      } else {
         var5.a(var5.d() + 1.0F);
      }

      if (var5.e() < var7.e()) {
         var5.b(var5.e() - 1.0F);
      } else {
         var5.b(var5.e() + 1.0F);
      }

      com.aspose.cells.b.a.b.zo var9 = new com.aspose.cells.b.a.b.zo(var4.j(), var4.k() + var4.i() / 2.0F);
      com.aspose.cells.b.a.b.zo var10 = new com.aspose.cells.b.a.b.zo(var4.j() + var4.h() / 2.0F, var4.k());
      com.aspose.cells.b.a.b.zo var11 = new com.aspose.cells.b.a.b.zo(var4.l(), var4.k() + var4.i() / 2.0F);
      com.aspose.cells.b.a.b.zo var12 = new com.aspose.cells.b.a.b.zo(var4.j() + var4.h() / 2.0F, var4.m());
      int var13 = a(var5, var4);
      com.aspose.cells.b.a.b.zm var14 = zama.a(var3);

      try {
         com.aspose.cells.b.a.b.a.ze var15 = new com.aspose.cells.b.a.b.a.ze();
         com.aspose.cells.b.a.b.zo var16 = com.aspose.cells.b.a.b.zo.a();
         com.aspose.cells.b.a.b.a.ze var17;
         switch(var13) {
         case 1:
            var16 = new com.aspose.cells.b.a.b.zo(var11.d() + var6, var11.e());
            var15.a(var11, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.d() <= var5.d()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var11, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            }
            break;
         case 2:
            var16 = new com.aspose.cells.b.a.b.zo(var11.d() + var6, var11.e());
            var15.a(var11, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.d() <= var5.d()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var11, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            } else {
               var15 = new com.aspose.cells.b.a.b.a.ze();
               var16 = new com.aspose.cells.b.a.b.zo(var12.d(), var12.e() + var6);
               var15.a(var12, var16);
               var15.a(var16, var8);
               var15.a(var14);
               if (a(var0, var15, var2) && var16.e() <= var5.e()) {
                  var17 = new com.aspose.cells.b.a.b.a.ze();
                  var17.a(var12, var16);
                  var17.a(var16, var5);
                  var0.a(var14, var17);
                  var17.g();
               }
            }
            break;
         case 3:
            var15 = new com.aspose.cells.b.a.b.a.ze();
            var16 = new com.aspose.cells.b.a.b.zo(var12.d(), var12.e() + var6);
            var15.a(var12, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.e() <= var5.e()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var12, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            }
            break;
         case 4:
            var15 = new com.aspose.cells.b.a.b.a.ze();
            var16 = new com.aspose.cells.b.a.b.zo(var9.d() - var6, var9.e());
            var15.a(var9, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.d() >= var5.d()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var9, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            } else {
               var15 = new com.aspose.cells.b.a.b.a.ze();
               var16 = new com.aspose.cells.b.a.b.zo(var12.d(), var12.e() + var6);
               var15.a(var12, var16);
               var15.a(var16, var8);
               var15.a(var14);
               if (a(var0, var15, var2) && var16.e() <= var5.e()) {
                  var17 = new com.aspose.cells.b.a.b.a.ze();
                  var17.a(var12, var16);
                  var17.a(var16, var5);
                  var0.a(var14, var17);
                  var17.g();
               }
            }
            break;
         case 5:
            var15 = new com.aspose.cells.b.a.b.a.ze();
            var16 = new com.aspose.cells.b.a.b.zo(var9.d() - var6, var9.e());
            var15.a(var9, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.d() >= var5.d()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var9, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            }
            break;
         case 6:
            var15 = new com.aspose.cells.b.a.b.a.ze();
            var16 = new com.aspose.cells.b.a.b.zo(var9.d() - var6, var9.e());
            var15.a(var9, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.d() >= var5.d()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var9, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            } else {
               var15 = new com.aspose.cells.b.a.b.a.ze();
               var16 = new com.aspose.cells.b.a.b.zo(var10.d(), var10.e() - var6);
               var15.a(var10, var16);
               var15.a(var16, var8);
               var15.a(var14);
               if (a(var0, var15, var2) && var16.e() >= var5.e()) {
                  var17 = new com.aspose.cells.b.a.b.a.ze();
                  var17.a(var10, var16);
                  var17.a(var16, var5);
                  var0.a(var14, var17);
                  var17.g();
               }
            }
            break;
         case 7:
            var15 = new com.aspose.cells.b.a.b.a.ze();
            var16 = new com.aspose.cells.b.a.b.zo(var10.d(), var10.e() - var6);
            var15.a(var10, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.e() >= var5.e()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var10, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            }
            break;
         case 8:
            var15 = new com.aspose.cells.b.a.b.a.ze();
            var16 = new com.aspose.cells.b.a.b.zo(var11.d() + var6, var11.e());
            var15.a(var11, var16);
            var15.a(var16, var8);
            var15.a(var14);
            if (a(var0, var15, var2) && var16.d() <= var5.d()) {
               var17 = new com.aspose.cells.b.a.b.a.ze();
               var17.a(var11, var16);
               var17.a(var16, var5);
               var0.a(var14, var17);
               var17.g();
            } else {
               var15 = new com.aspose.cells.b.a.b.a.ze();
               var16 = new com.aspose.cells.b.a.b.zo(var10.d(), var10.e() - var6);
               var15.a(var10, var16);
               var15.a(var16, var8);
               var15.a(var14);
               if (a(var0, var15, var2) && var16.e() >= var5.e()) {
                  var17 = new com.aspose.cells.b.a.b.a.ze();
                  var17.a(var10, var16);
                  var17.a(var16, var5);
                  var0.a(var14, var17);
                  var17.g();
               }
            }
         }
      } finally {
         if (var14 != null) {
            var14.r();
         }

      }

   }

   private static boolean a(zn var0, com.aspose.cells.b.a.b.a.ze var1, ArrayList var2) {
      for(int var3 = 0; var3 < var2.size(); ++var3) {
         com.aspose.cells.b.a.b.a.ze var4 = (com.aspose.cells.b.a.b.a.ze)var2.get(var3);
         com.aspose.cells.b.a.b.zr var5 = new com.aspose.cells.b.a.b.zr(var1);

         try {
            var5.a(var4);
            if (!var0.a().b(var5)) {
               boolean var6 = false;
               return var6;
            }
         } finally {
            if (var5 != null) {
               var5.b();
            }

         }
      }

      return true;
   }

   private static int a(com.aspose.cells.b.a.b.zo var0, com.aspose.cells.b.a.b.zq var1) {
      boolean var2 = false;
      byte var3;
      if (var1.l() < var0.d()) {
         if (var1.m() < var0.e()) {
            var3 = 2;
         } else if (var1.k() > var0.e()) {
            var3 = 8;
         } else {
            var3 = 1;
         }
      } else if (var1.j() > var0.d()) {
         if (var1.m() < var0.e()) {
            var3 = 4;
         } else if (var1.k() > var0.e()) {
            var3 = 6;
         } else {
            var3 = 5;
         }
      } else if (var1.m() < var0.e()) {
         var3 = 3;
      } else if (var1.k() > var0.e()) {
         var3 = 7;
      } else {
         var3 = 0;
      }

      return var3;
   }

   private static com.aspose.cells.b.a.b.zo a(double var0, double var2, double var4, double var6) {
      double var8 = var4 * 3.141592653589793D / 180.0D % 6.283185307179586D;
      double var10 = var6 * Math.cos(var8);
      double var12 = var6 * Math.sin(var8);
      var10 += var0;
      var12 = var2 - var12;
      return new com.aspose.cells.b.a.b.zo((float)var10, (float)var12);
   }

   private static boolean a(com.aspose.cells.b.a.b.zq var0, com.aspose.cells.b.a.b.zp var1) {
      com.aspose.cells.b.a.b.zq var2 = new com.aspose.cells.b.a.b.zq((float)var1.c(), (float)var1.d(), (float)var1.e(), (float)var1.f());
      return a(var0, var2);
   }

   private static boolean a(com.aspose.cells.b.a.b.zq var0, com.aspose.cells.b.a.b.zq var1) {
      return var0.j() >= var1.j() && var0.l() <= var1.l() && var0.k() >= var1.k() && var0.m() <= var1.m();
   }

   private static com.aspose.cells.b.a.b.zo a(zjd var0, com.aspose.cells.b.a.b.zq var1, double var2, double var4, double var6) throws Exception {
      zif var8 = var0.h();
      zn var9 = var8.ap();
      com.aspose.cells.b.a.b.zp var10 = new com.aspose.cells.b.a.b.zp(0, 0, var8.a(), var8.b());
      float var11 = var0.E();
      double var12 = (double)var1.f() + (double)var1.h() / 2.0D;
      double var14 = (double)var1.g() + (double)var1.i() / 2.0D;
      double var16 = (double)var1.h() / 2.0D;
      double var18 = var16 * (double)var11 / 100.0D;
      com.aspose.cells.b.a.b.zo var20 = a(var12, var14, var6 - var4 / 2.0D, var18);
      com.aspose.cells.b.a.b.zq var21 = new com.aspose.cells.b.a.b.zq((float)((double)var20.d() - var16), (float)((double)var20.e() - var16), var1.h(), var1.i());
      com.aspose.cells.b.a.b.zq var22 = a(var21, var2, var4);
      if (var11 > 0.0F) {
         while(!a(var22, var10) && var11 > 0.0F) {
            --var11;
            var18 = var16 * (double)var11 / 100.0D;
            var20 = a(var12, var14, var6 - var4 / 2.0D, var18);
            var21 = new com.aspose.cells.b.a.b.zq((float)((double)var20.d() - var16), (float)((double)var20.e() - var16), var1.h(), var1.i());
            var22 = a(var21, var2, var4);
         }
      } else {
         while(!a(var22, var10) && var11 < 0.0F) {
            ++var11;
            var18 = var16 * (double)var11 / 100.0D;
            var20 = a(var12, var14, var6 - var4 / 2.0D, var18);
            var21 = new com.aspose.cells.b.a.b.zq((float)((double)var20.d() - var16), (float)((double)var20.e() - var16), var1.h(), var1.i());
            var22 = a(var21, var2, var4);
         }
      }

      com.aspose.cells.b.a.b.a.zi var23 = new com.aspose.cells.b.a.b.a.zi();
      float var24 = (float)((double)var20.d() - var12);
      float var25 = (float)((double)var20.e() - var14);
      var24 = zbuk.a(var24);
      var25 = zbuk.a(var25);
      var23.b(var24, var25);
      var9.b(var23);
      return var20;
   }

   private static void c(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, zbcp var3) throws Exception {
      zbcr var4 = var1.z();
      int var5 = var3.ai();
      double var6 = 0.0D;
      zjf var8 = var3.D();

      for(int var9 = 0; var9 < var8.getCount(); ++var9) {
         var6 += Math.abs(var8.a(var9).v());
      }

      double var52 = (double)var2.c() + (double)var2.e() / 2.0D;
      double var11 = (double)var2.d() + (double)var2.f() / 2.0D;
      double var13 = (double)((float)var3.U() - 90.0F);
      double var15 = 0.0D;
      double var17 = (double)(90.0F - (float)var3.U());
      com.aspose.cells.b.a.b.a.ze var19 = new com.aspose.cells.b.a.b.a.ze();
      ArrayList var20 = new ArrayList();
      double var21 = (double)var2.e() / 2.0D / (double)(1.0F + var3.ax() / 100.0F);

      for(int var23 = 0; var23 < var8.getCount(); ++var23) {
         zpt var24 = var8.b(var23).o();
         var15 = a(var8.a(var23).v(), var6);
         double var25 = (var17 - var15 / 2.0D) * 3.141592653589793D / 180.0D % 6.283185307179586D;
         zjd var27 = var8.b(var23);
         double var28 = (double)(var27.E() / 100.0F);
         double var30 = var21 * var28;
         double var32 = var30 * Math.cos(var25);
         double var34 = var30 * Math.sin(var25);
         double var36 = var52 + var32;
         double var38 = var11 - var34;
         com.aspose.cells.b.a.b.zq var40 = new com.aspose.cells.b.a.b.zq((float)(var36 - var21), (float)(var38 - var21), (float)(2.0D * var21), (float)(2.0D * var21));
         if (var15 == 0.0D) {
            var15 = 0.001D;
         }

         com.aspose.cells.b.a.b.a.ze var41 = new com.aspose.cells.b.a.b.a.ze();
         var41.b(var40.f(), var40.g(), var40.h(), var40.i(), (float)var13, (float)var15);
         com.aspose.cells.b.a.b.zq var42 = a(var40, (double)((float)var13), (double)((float)var15));
         com.aspose.cells.b.a.b.zc var43 = zax.a(var27.i(), var42);

         try {
            var0.a(var43, var41);
         } finally {
            if (var43 != null) {
               var43.f();
            }

         }

         var19.a(var41, false);
         com.aspose.cells.b.a.a.ze.a(var20, (Object)var41);
         com.aspose.cells.b.a.b.zm var44 = zama.a(var27.k());

         try {
            var0.a(var44, var41);
         } finally {
            if (var44 != null) {
               var44.r();
            }

         }

         var27.a(new com.aspose.cells.b.a.b.zq((float)var36, (float)var38, (float)var21, (float)var21));
         var27.b((float)var13);
         var27.c((float)(var13 + var15));
         var13 += var15;
         var17 -= var15;
      }

      var17 = (double)(90.0F - (float)var3.U());
      com.aspose.cells.b.a.b.zq var53 = com.aspose.cells.a.c.zn.a(var19);

      for(int var54 = 0; var54 < var8.getCount(); ++var54) {
         zjd var55 = var8.b(var54);
         zpt var26 = var55.o();
         double var56 = var6 == 0.0D ? 0.0D : Math.abs(var55.v()) / var6;
         var15 = a(var8.a(var54).v(), var6);
         double var29 = (var17 - var15 / 2.0D) % 360.0D;
         double var31 = var29 * 3.141592653589793D / 180.0D;
         var26.g = var31;
         double var33 = (double)(var55.E() / 100.0F);
         double var35 = (1.0D + var33) * var21 * Math.cos(var31);
         double var37 = (1.0D + var33) * var21 * Math.sin(var31);
         var35 += var52;
         var37 = var11 - var37;
         com.aspose.cells.b.a.b.zq var39 = var26.b;
         a(var0, var1, var5, var54, var56, var39, 0.0D);
         var26.d = new com.aspose.cells.b.a.b.zo((float)var35, (float)var37);
         float var57 = (float)(var21 * (double)a);
         if (var3.Q() && (var26.j() == 9 || var26.j() == 0)) {
            a(var0, var53, var20, var3.R(), var39, var26.d, var57);
         }

         var17 -= var15;
      }

   }

   private static void d(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, zbcp var3) throws Exception {
      int var4 = var1.ab();
      int var5 = var1.ac();
      int var6 = var1.ad();
      zjd var7 = var3.u();
      int var8 = var2.c() + var4;
      int var9 = var2.d() + var2.f() / 2;
      int var10 = var2.c() + var2.e() - var5;
      int var11 = var2.d() + var2.f() / 2;
      zbcr var12 = var1.z();
      int var13 = var3.ai();
      zjf var14 = var3.D();
      int var15 = var14.getCount();
      boolean var16 = false;
      boolean var17 = false;
      int var73;
      int var74;
      if (var15 == 1) {
         var73 = 1;
         var74 = 1;
      } else {
         if (var3.ay() != 0 && var3.az() > 0.0D) {
            var74 = (int)var3.az();
            if (var74 > var15) {
               var74 = var15;
            }
         } else {
            var74 = zbuk.a((double)((float)var15 / 3.0F));
         }

         var73 = var15 - var74 + 1;
      }

      double[] var18 = new double[var73];
      double[] var19 = new double[var74];
      double var20 = 0.0D;
      double var22 = 0.0D;
      double var24 = 0.0D;

      for(int var26 = 0; var26 < var15; ++var26) {
         if (var26 + 1 < var73) {
            var18[var26 + 1] = Math.abs(var14.a(var26).v());
            var20 += var18[var26 + 1];
         } else {
            var19[var26 + 1 - var73] = Math.abs(var14.a(var26).v());
            var22 += var19[var26 + 1 - var73];
         }

         var24 += Math.abs(var14.a(var26).v());
      }

      var18[0] = var22;
      var20 += var22;
      double var75 = var20 == 0.0D ? 0.0D : -Math.abs(var18[0]) / var20 * 360.0D / 2.0D;
      if (var73 == 1) {
         var75 = 0.0D;
      }

      double var28 = 0.0D;
      double var31 = (double)var4 / (double)(1.0F + var3.ax() / 100.0F);
      com.aspose.cells.b.a.b.zq var33 = new com.aspose.cells.b.a.b.zq((float)((double)var8 - var31), (float)((double)var9 - var31), (float)(2.0D * var31), (float)(2.0D * var31));
      double var34 = -var75;

      Color var30;
      int var36;
      zjd var37;
      com.aspose.cells.b.a.b.a.ze var39;
      for(var36 = 0; var36 < var18.length; ++var36) {
         var37 = null;
         if (var18[var36] != 0.0D) {
            if (var36 == 0) {
               var30 = var1.g(var3.aw()).a(var15);
               if (var7 != null) {
                  var7.i().c(var30);
                  var37 = var7;
               }
            } else {
               var37 = var14.b(var36 - 1);
               var30 = var1.g(var3.aw()).a(var36 - 1);
            }

            var28 = a(var18[var36], var20);
            if (var28 == 0.0D) {
               var28 = 0.001D;
            }

            com.aspose.cells.b.a.b.zo var38 = new com.aspose.cells.b.a.b.zo((float)var8, (float)var9);
            if (var37.E() > 0.0F) {
               var38 = a(var37, var33, var75, (double)((float)(var28 == 0.0D ? 0.01D : var28)), var34);
            }

            var39 = new com.aspose.cells.b.a.b.a.ze();
            var39.b(var33.f(), var33.g(), var33.h(), var33.i(), (float)var75, (float)var28);
            Object var40;
            if (var37 != null) {
               com.aspose.cells.b.a.b.zq var41 = a(var33, (double)((float)var75), (double)((float)var28));
               var40 = zax.a(var37.i(), var41);
            } else {
               var40 = new com.aspose.cells.b.a.b.zu(var30);
            }

            var0.a((com.aspose.cells.b.a.b.zc)var40, (com.aspose.cells.b.a.b.a.ze)var39);
            if (var40 != null) {
               ((com.aspose.cells.b.a.b.zc)var40).h();
            }

            if (var37.E() > 0.0F) {
               var0.d();
            }

            var37.a(new com.aspose.cells.b.a.b.zq(var38.d(), var38.e(), var33.h() / 2.0F, var33.i() / 2.0F));
            var37.b((float)var75);
            var37.c((float)(var75 + var28));
            var75 += var28;
            var34 -= var28;
         }
      }

      var75 = var20 == 0.0D ? 0.0D : -Math.abs(var18[0]) / var20 * 360.0D / 2.0D;
      if (var73 == 1) {
         var75 = 0.0D;
      }

      var34 = -var75;

      for(var36 = 0; var36 < var18.length; ++var36) {
         var37 = null;
         if (var18[var36] != 0.0D) {
            if (var36 == 0) {
               var30 = Color.getBlack();
               if (var7 != null) {
                  var7.k().b(var30);
                  var37 = var7;
               }
            } else {
               var37 = var14.b(var36 - 1);
               var30 = var37.k().a();
            }

            com.aspose.cells.b.a.b.zm var77;
            if (var37 != null) {
               var77 = zama.a(var37.k());
            } else {
               var77 = new com.aspose.cells.b.a.b.zm(var30);
            }

            var28 = a(var18[var36], var20);
            if (var28 == 0.0D) {
               var28 = 0.001D;
            }

            if (var37.E() > 0.0F) {
               a(var37, var33, var75, (double)((float)(var28 == 0.0D ? 0.01D : var28)), var34);
            }

            var39 = new com.aspose.cells.b.a.b.a.ze();
            if (var28 == 360.0D) {
               var39.a(var33, (float)var75, (float)var28);
            } else {
               var39.b(var33.f(), var33.g(), var33.h(), var33.i(), (float)var75, (float)var28);
            }

            var0.a(var77, var39);
            if (var37.E() > 0.0F) {
               var0.d();
            }

            if (var77 != null) {
               var77.a();
            }

            var75 += var28;
            var34 -= var28;
         }
      }

      var75 = var20 == 0.0D ? 0.0D : Math.abs(var18[0]) / var20 * 360.0D / 2.0D;
      if (var73 == 1) {
         var75 = 0.0D;
      }

      double var76 = (double)var5 / (double)(1.0F + var3.ax() / 100.0F);
      com.aspose.cells.b.a.b.zq var79 = new com.aspose.cells.b.a.b.zq((float)((double)var10 - var76), (float)((double)var11 - var76), (float)(2.0D * var76), (float)(2.0D * var76));
      var34 = -var75;

      for(int var78 = 0; var78 < var19.length; ++var78) {
         if (var19[var78] != 0.0D) {
            int var81 = var18.length - 1 + var78;
            var30 = var1.g(var3.aw()).a(var81);
            zjd var83 = var14.b(var81);
            var28 = a(var19[var78], var22);
            if (var28 == 0.0D) {
               var28 = 0.001D;
            }

            com.aspose.cells.b.a.b.zo var42 = new com.aspose.cells.b.a.b.zo((float)var10, (float)var11);
            if (var83.E() > 0.0F) {
               var42 = a(var83, var79, var75, (double)((float)(var28 == 0.0D ? 0.01D : var28)), var34);
            }

            com.aspose.cells.b.a.b.a.ze var43 = new com.aspose.cells.b.a.b.a.ze();
            var43.b(var79.f(), var79.g(), var79.h(), var79.i(), (float)var75, (float)var28);
            com.aspose.cells.b.a.b.zq var44 = a(var79, (double)((float)var75), (double)((float)var28));
            com.aspose.cells.b.a.b.zc var45 = zax.a(var83.i(), var44);

            try {
               var0.a(var45, var43);
            } finally {
               if (var45 != null) {
                  var45.f();
               }

            }

            if (var83.E() > 0.0F) {
               var0.d();
            }

            var83.a(new com.aspose.cells.b.a.b.zq(var42.d(), var42.e(), var79.h() / 2.0F, var79.i() / 2.0F));
            var83.b((float)var75);
            var83.c((float)(var75 + var28));
            var75 += var28;
            var34 -= var28;
         }
      }

      var75 = var20 == 0.0D ? 0.0D : Math.abs(var18[0]) / var20 * 360.0D / 2.0D;
      if (var73 == 1) {
         var75 = 0.0D;
      }

      var34 = -var75;
      double[] var80 = new double[var19.length];
      double[] var82 = new double[var19.length];

      for(int var84 = 0; var84 < var19.length; ++var84) {
         if (var19[var84] != 0.0D) {
            int var86 = var18.length - 1 + var84;
            zjd var87 = var14.b(var86);
            com.aspose.cells.b.a.b.zm var91 = zama.a(var87.k());

            try {
               var28 = a(var19[var84], var22);
               if (var28 == 0.0D) {
                  var28 = 0.001D;
               }

               if (var87.E() > 0.0F) {
                  a(var87, var79, var75, (double)((float)(var28 == 0.0D ? 0.01D : var28)), var34);
               }

               com.aspose.cells.b.a.b.a.ze var94 = new com.aspose.cells.b.a.b.a.ze();
               if (var28 == 360.0D) {
                  var94.a(var79, (float)var75, (float)var28);
               } else {
                  var94.b(var79.f(), var79.g(), var79.h(), var79.i(), (float)var75, (float)var28);
               }

               var0.a(var91, var94);
               if (var87.E() > 0.0F) {
                  var0.d();
               }
            } finally {
               if (var91 != null) {
                  var91.r();
               }

            }

            var80[var84] = var75;
            var82[var84] = var28;
            var75 += var28;
            var34 -= var28;
         }
      }

      double var50;
      double var85;
      if (var3.X() && var20 != 0.0D) {
         if (Math.abs(var18[0]) / var20 * 2.0D * 3.141592653589793D > 3.141592653589793D) {
            var85 = Math.acos((var31 - (double)var5) / (double)(var10 - var8));
            com.aspose.cells.b.a.b.zo var88 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(var85)), (float)((double)var9 - var31 * Math.sin(var85)));
            com.aspose.cells.b.a.b.zo var92 = new com.aspose.cells.b.a.b.zo((float)((double)var10 + var76 * Math.cos(var85)), (float)((double)var11 - var76 * Math.sin(var85)));
            com.aspose.cells.b.a.b.zo var95 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(-var85)), (float)((double)var9 - var31 * Math.sin(-var85)));
            com.aspose.cells.b.a.b.zo var46 = new com.aspose.cells.b.a.b.zo((float)((double)var10 + var76 * Math.cos(-var85)), (float)((double)var11 - var76 * Math.sin(-var85)));
            if (var7.E() > 0.0F) {
               float var47 = (float)(var31 * (double)var7.E() / 100.0D);
               var88.a(var88.d() + var47);
               var95.a(var95.d() + var47);
            }

            int var99 = a(var80, var82, var85 * 180.0D / 3.141592653589793D);
            zjd var48 = var3.D().b(var18.length - 1 + var99);
            float var49;
            if (var48.E() > 0.0F) {
               var49 = (float)(var76 * (double)var48.E() / 100.0D);
               var50 = (360.0D - var80[var99] - var82[var99] / 2.0D) * 3.141592653589793D / 180.0D % 6.283185307179586D;
               var46.a(var46.d() + (float)((double)var49 * Math.cos(var50)));
               var46.b(var46.e() - (float)((double)var49 * Math.sin(var50)));
            }

            var99 = a(var80, var82, 360.0D - var85 * 180.0D / 3.141592653589793D);
            var48 = var3.D().b(var18.length - 1 + var99);
            if (var48.E() > 0.0F) {
               var49 = (float)(var76 * (double)var48.E() / 100.0D);
               var50 = (360.0D - var80[var99] - var82[var99] / 2.0D) * 3.141592653589793D / 180.0D % 6.283185307179586D;
               var92.a(var92.d() + (float)((double)var49 * Math.cos(var50)));
               var92.b(var92.e() - (float)((double)var49 * Math.sin(var50)));
            }

            zama.a(var0, var88, var92, var3.Y());
            zama.a(var0, var95, var46, var3.Y());
         } else {
            var75 = var20 == 0.0D ? 0.0D : Math.abs(var18[0]) / var20 * 3.141592653589793D;
            if (var73 == 1) {
               var75 = 0.0D;
            }

            double var89 = (double)var8 + var31 * Math.cos(var75);
            double var96 = (double)var9 - var31 * Math.sin(var75);
            double var100 = Math.sqrt(Math.pow(var96 - (double)var11, 2.0D) + Math.pow(var89 - (double)var10, 2.0D));
            var85 = Math.acos(((double)var10 - var89) / var100) + Math.acos(var76 / var100);
            com.aspose.cells.b.a.b.zo var103 = new com.aspose.cells.b.a.b.zo((float)var89, (float)var96);
            com.aspose.cells.b.a.b.zo var104 = new com.aspose.cells.b.a.b.zo((float)((double)var10 + var76 * Math.cos(3.141592653589793D - var85)), (float)((double)var11 - var76 * Math.sin(3.141592653589793D - var85)));
            com.aspose.cells.b.a.b.zo var51 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(-var75)), (float)((double)var9 - var31 * Math.sin(-var75)));
            com.aspose.cells.b.a.b.zo var52 = new com.aspose.cells.b.a.b.zo((float)((double)var10 + var76 * Math.cos(var85 + 3.141592653589793D)), (float)((double)var11 - var76 * Math.sin(var85 + 3.141592653589793D)));
            if (var7.E() > 0.0F) {
               float var53 = (float)(var31 * (double)var7.E() / 100.0D);
               var103.a(var103.d() + var53);
               var51.a(var51.d() + var53);
            }

            int var106 = a(var80, var82, var85 * 180.0D / 3.141592653589793D);
            zjd var54 = var3.D().b(var18.length - 1 + var106);
            float var55;
            double var56;
            if (var54.E() > 0.0F) {
               var55 = (float)(var76 * (double)var54.E() / 100.0D);
               var56 = (360.0D - var80[var106] - var82[var106] / 2.0D) * 3.141592653589793D / 180.0D % 6.283185307179586D;
               var52.a(var52.d() + (float)((double)var55 * Math.cos(var56)));
               var52.b(var52.e() - (float)((double)var55 * Math.sin(var56)));
            }

            var106 = a(var80, var82, 360.0D - var85 * 180.0D / 3.141592653589793D);
            var54 = var3.D().b(var18.length - 1 + var106);
            if (var54.E() > 0.0F) {
               var55 = (float)(var76 * (double)var54.E() / 100.0D);
               var56 = (360.0D - var80[var106] - var82[var106] / 2.0D) * 3.141592653589793D / 180.0D % 6.283185307179586D;
               var104.a(var104.d() + (float)((double)var55 * Math.cos(var56)));
               var104.b(var104.e() - (float)((double)var55 * Math.sin(var56)));
            }

            zama.a(var0, var103, var104, var3.Y());
            zama.a(var0, var51, var52, var3.Y());
         }
      }

      zpt var90 = var3.w();
      var75 = var20 == 0.0D ? 0.0D : Math.abs(var18[0]) / var20 * 180.0D;
      if (var73 == 1) {
         var75 = 0.0D;
      }

      var28 = 0.0D;
      float var97 = (float)var1.b();

      for(int var98 = 0; var98 < var18.length + var19.length; ++var98) {
         zjd var101 = null;
         double var102 = 0.0D;
         if (var98 == 0) {
            if (var7 != null) {
               var101 = var7;
            }
         } else {
            var101 = var14.b(var98 - 1);
         }

         if (var101 != null) {
            var90 = var101.o();
            var102 = (double)(var101.E() / 100.0F);
         }

         float var93;
         if (var90.a().f().e()) {
            var93 = (float)var1.a() * 0.175F;
         } else {
            var93 = (float)var1.a() * 0.2F;
         }

         var50 = var18[0];
         new com.aspose.cells.b.a.b.zt(0.0F, 0.0F);
         com.aspose.cells.b.a.b.zt var105 = a(var0, var1.z(), var13, var98 - 1, var50, var93, var97, var18[0]);
         double var107 = 0.0D;
         double var108 = 0.0D;
         double var57 = 0.0D;
         double var59;
         if (var98 < var73) {
            var50 = var24 == 0.0D ? 0.0D : var18[var98] / var24;
            var28 = var20 == 0.0D ? 0.0D : var18[var98] / var20 * 360.0D;
            var59 = var31;
            var57 = var31 * var102;
         } else {
            var50 = var24 == 0.0D ? 0.0D : var19[var98 - var73] / var24;
            if (var98 == var73) {
               var75 = var20 == 0.0D ? 0.0D : -Math.abs(var18[0]) / var20 * 180.0D;
               if (var73 == 1) {
                  var75 = 0.0D;
               }
            }

            var28 = var22 == 0.0D ? 0.0D : var19[var98 - var73] / var22 * 360.0D;
            var59 = var76;
            var57 = var76 * var102;
         }

         if (var28 != 0.0D) {
            double var61 = (var75 - var28 / 2.0D) % 360.0D;
            var85 = var61 * 3.141592653589793D / 180.0D;
            double var63;
            double[] var65;
            double[] var66;
            switch(var90.j()) {
            case 1:
               var63 = var57 + var59 * 0.5D;
               var107 = var63 * Math.cos(var85);
               var108 = var63 * Math.sin(var85);
               var107 -= (double)(var105.b() / 2.0F);
               var108 += (double)(var105.c() / 2.0F);
               break;
            case 3:
               var63 = var57 + var59 * 0.97D;
               var107 = var63 * Math.cos(var85);
               var108 = var63 * Math.sin(var85);
               var65 = new double[]{var107};
               var66 = new double[]{var108};
               b(var65, var66, var61, var105);
               var107 = var65[0];
               var108 = var66[0];
               break;
            default:
               var63 = var57 + var59 * 1.03D;
               var107 = var63 * Math.cos(var85);
               var108 = var63 * Math.sin(var85);
               var65 = new double[]{var107};
               var66 = new double[]{var108};
               a(var65, var66, var61, var105);
               var107 = var65[0];
               var108 = var66[0];
               if (var90.j() == 9) {
                  if (!var90.a().q()) {
                     var85 -= (double)var90.a().n() * 3.141592653589793D / 180.0D;
                     var85 %= 6.283185307179586D;
                  }

                  if (!var90.a().r()) {
                     var63 += var59 * (double)var90.a().o() / 500.0D;
                  }

                  var107 = var63 * Math.cos(var85);
                  var108 = var63 * Math.sin(var85);
                  var65 = new double[]{var107};
                  var66 = new double[]{var108};
                  a(var65, var66, var61, var105);
                  var107 = var65[0];
                  var108 = var66[0];
               }
            }

            if (var98 < var73) {
               var107 += (double)var8;
               var108 = (double)var9 - var108;
            } else {
               var107 += (double)var10;
               var108 = (double)var11 - var108;
            }

            com.aspose.cells.b.a.b.zq var109 = new com.aspose.cells.b.a.b.zq((float)var107, (float)var108, var105.b(), var105.c());
            a(var0, var1, var13, var98 - 1, var50, var109, var18[0]);
            var75 -= var28;
         }
      }

   }

   private static int a(double[] var0, double[] var1, double var2) {
      int var4;
      for(var4 = 0; var4 < var0.length; ++var4) {
         if (var2 > var0[var4] % 360.0D && var2 <= var0[var4] + var1[var4] % 360.0D) {
            return var4;
         }
      }

      var2 += 360.0D;

      for(var4 = 0; var4 < var0.length; ++var4) {
         if (var2 > var0[var4] % 360.0D && var2 <= var0[var4] + var1[var4] % 360.0D) {
            return var4;
         }
      }

      return 0;
   }

   private static void e(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, zbcp var3) throws Exception {
      int var4 = var1.ab();
      int var5 = var1.ac();
      int var6 = var1.ad();
      zjd var7 = var3.u();
      int var8 = var2.c() + var4;
      int var9 = var2.d() + var2.f() / 2;
      int var10 = var2.c() + var2.e() - var5;
      int var11 = var2.d() + var2.f() / 2;
      zbcr var12 = var1.z();
      int var13 = var3.ai();
      zjf var14 = var3.D();
      int var15 = var14.getCount();
      boolean var16 = false;
      boolean var17 = false;
      int var70;
      int var71;
      if (var15 == 1) {
         var70 = 1;
         var71 = 1;
      } else {
         if (var3.ay() != 0 && var3.az() > 0.0D) {
            var71 = (int)var3.az();
            if (var71 > var15) {
               var71 = var15;
            }
         } else {
            var71 = zbuk.a((double)((float)var15 / 3.0F));
         }

         var70 = var15 - var71 + 1;
      }

      double[] var18 = new double[var70];
      double[] var19 = new double[var71];
      double var20 = 0.0D;
      double var22 = 0.0D;
      double var24 = 0.0D;

      for(int var26 = 0; var26 < var15; ++var26) {
         if (var26 + 1 < var70) {
            var18[var26 + 1] = Math.abs(var14.a(var26).v());
            var20 += var18[var26 + 1];
         } else {
            var19[var26 + 1 - var70] = Math.abs(var14.a(var26).v());
            var22 += var19[var26 + 1 - var70];
         }

         var24 += Math.abs(var14.a(var26).v());
      }

      var18[0] = var22;
      var20 += var22;
      double var72 = var20 == 0.0D ? 0.0D : -Math.abs(var18[0]) / var20 * 360.0D / 2.0D;
      if (var70 == 1) {
         var72 = 0.0D;
      }

      double var28 = 0.0D;
      double var31 = (double)var4 / (double)(1.0F + var3.ax() / 100.0F);
      com.aspose.cells.b.a.b.zq var33 = new com.aspose.cells.b.a.b.zq((float)((double)var8 - var31), (float)((double)var9 - var31), (float)(2.0D * var31), (float)(2.0D * var31));
      double var34 = -var72;

      Color var30;
      int var36;
      zjd var37;
      com.aspose.cells.b.a.b.a.ze var39;
      for(var36 = 0; var36 < var18.length; ++var36) {
         var37 = null;
         if (var18[var36] != 0.0D) {
            if (var36 == 0) {
               var30 = var1.g(var3.aw()).a(var15);
               if (var7 != null) {
                  var7.i().c(var30);
                  var37 = var7;
               }
            } else {
               var37 = var14.b(var36 - 1);
               var30 = var1.g(var3.aw()).a(var36 - 1);
            }

            var28 = a(var18[var36], var20);
            if (var28 == 0.0D) {
               var28 = 0.001D;
            }

            com.aspose.cells.b.a.b.zo var38 = new com.aspose.cells.b.a.b.zo((float)var8, (float)var9);
            if (var37.E() > 0.0F) {
               var38 = a(var37, var33, var72, (double)((float)(var28 == 0.0D ? 0.01D : var28)), var34);
            }

            var39 = new com.aspose.cells.b.a.b.a.ze();
            var39.b(var33.f(), var33.g(), var33.h(), var33.i(), (float)var72, (float)var28);
            Object var40;
            if (var37 != null) {
               a(var33, (double)((float)var72), (double)((float)var28));
               var40 = zax.a(var37.i(), com.aspose.cells.a.c.zn.a(var39));
            } else {
               var40 = new com.aspose.cells.b.a.b.zu(var30);
            }

            var0.a((com.aspose.cells.b.a.b.zc)var40, (com.aspose.cells.b.a.b.a.ze)var39);
            if (var40 != null) {
               ((com.aspose.cells.b.a.b.zc)var40).h();
            }

            if (var37.E() > 0.0F) {
               var0.d();
            }

            var37.a(new com.aspose.cells.b.a.b.zq(var38.d(), var38.e(), var33.h() / 2.0F, var33.i() / 2.0F));
            var37.b((float)var72);
            var37.c((float)(var72 + var28));
            var72 += var28;
            var34 -= var28;
         }
      }

      var72 = var20 == 0.0D ? 0.0D : -Math.abs(var18[0]) / var20 * 360.0D / 2.0D;
      if (var70 == 1) {
         var72 = 0.0D;
      }

      var34 = -var72;

      for(var36 = 0; var36 < var18.length; ++var36) {
         var37 = null;
         if (var18[var36] != 0.0D) {
            if (var36 == 0) {
               var30 = Color.getBlack();
               if (var7 != null) {
                  var7.k().b(var30);
                  var37 = var7;
               }
            } else {
               var37 = var14.b(var36 - 1);
               var30 = var37.k().a();
            }

            com.aspose.cells.b.a.b.zm var74;
            if (var37 != null) {
               var74 = zama.a(var37.k());
            } else {
               var74 = new com.aspose.cells.b.a.b.zm(var30);
            }

            var28 = a(var18[var36], var20);
            if (var28 == 0.0D) {
               var28 = 0.001D;
            }

            if (var37.E() > 0.0F) {
               a(var37, var33, var72, (double)((float)(var28 == 0.0D ? 0.01D : var28)), var34);
            }

            var39 = new com.aspose.cells.b.a.b.a.ze();
            if (var28 == 360.0D) {
               var39.a(var33, (float)var72, (float)var28);
            } else {
               var39.b(var33.f(), var33.g(), var33.h(), (float)var2.f(), (float)var72, (float)var28);
            }

            var0.a(var74, var39);
            if (var74 != null) {
               var74.a();
            }

            if (var37.E() > 0.0F) {
               var0.d();
            }

            var72 += var28;
            var34 -= var28;
         }
      }

      double var73 = (double)(var11 - var5);

      double var75;
      for(int var76 = 0; var76 < var19.length; ++var76) {
         if (var19[var76] != 0.0D) {
            int var41 = var18.length - 1 + var76;
            var30 = var1.g(var3.aw()).a(var41);
            zjd var42 = var14.b(var41);
            var42.i().c(var30);
            var75 = Math.abs(var19[var76]) / var22 * 2.0D * (double)var5;
            com.aspose.cells.b.a.b.zq var43 = new com.aspose.cells.b.a.b.zq((float)var10, (float)var73, (float)var5, (float)var75);
            com.aspose.cells.b.a.b.zc var44 = zax.a(var42.i(), var43);

            try {
               var0.b(var44, var43);
            } finally {
               if (var44 != null) {
                  var44.f();
               }

            }

            com.aspose.cells.b.a.b.zm var45 = zama.a(var42.k());

            try {
               var0.c(var45, (float)var10, (float)var73, (float)var5, (float)var75);
            } finally {
               if (var45 != null) {
                  var45.r();
               }

            }

            var42.a(new com.aspose.cells.b.a.b.zq(var43.f(), var43.g(), var43.h(), var43.i()));
            var73 += var75;
         }
      }

      double var77;
      if (var3.X() && var20 != 0.0D) {
         com.aspose.cells.b.a.b.zo var78 = new com.aspose.cells.b.a.b.zo((float)var10, (float)(var11 - var5));
         com.aspose.cells.b.a.b.zo var80 = new com.aspose.cells.b.a.b.zo((float)var10, (float)(var11 + var5));
         if (Math.abs(var18[0]) / var20 * 2.0D * 3.141592653589793D > 3.141592653589793D) {
            double var10000;
            if (var20 == 0.0D) {
               var10000 = 0.0D;
            } else {
               var10000 = Math.abs(var18[0]) / var20 * 3.141592653589793D;
            }

            if (var70 == 1) {
               var72 = 0.0D;
            }

            double var82 = Math.sqrt(Math.pow((double)(var11 - var9), 2.0D) + Math.pow((double)(var10 - var8), 2.0D));
            var77 = Math.acos(var31 / var82) + Math.asin((double)var5 / var82);
            com.aspose.cells.b.a.b.zo var46 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(var77)), (float)((double)var9 - var31 * Math.sin(var77)));
            com.aspose.cells.b.a.b.zo var47 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(-var77)), (float)((double)var9 - var31 * Math.sin(-var77)));
            if (var7.E() > 0.0F) {
               float var48 = (float)(var31 * (double)var7.E() / 100.0D);
               var46.a(var46.d() + var48);
               var47.a(var47.d() + var48);
            }

            zama.a(var0, var46, var78, var3.Y());
            zama.a(var0, var47, var80, var3.Y());
         } else {
            var77 = Math.abs(var18[0]) / var20 * 3.141592653589793D;
            com.aspose.cells.b.a.b.zo var83 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(var77)), (float)((double)var9 - var31 * Math.sin(var77)));
            com.aspose.cells.b.a.b.zo var84 = new com.aspose.cells.b.a.b.zo((float)((double)var8 + var31 * Math.cos(-var77)), (float)((double)var9 - var31 * Math.sin(-var77)));
            if (var7.E() > 0.0F) {
               float var86 = (float)(var31 * (double)var7.E() / 100.0D);
               var83.a(var83.d() + var86);
               var84.a(var84.d() + var86);
            }

            zama.a(var0, var83, var78, var3.Y());
            zama.a(var0, var84, var80, var3.Y());
         }
      }

      zpt var79 = var3.w();
      double var81 = var18[0];
      new com.aspose.cells.b.a.b.zt(0.0F, 0.0F);
      double var87 = 0.0D;
      double var88 = 0.0D;
      var72 = var20 == 0.0D ? 0.0D : Math.abs(var18[0]) / var20 * 180.0D;
      if (var70 == 1) {
         var72 = 0.0D;
      }

      var28 = 0.0D;
      float var51 = (float)var1.b();

      float var50;
      int var52;
      zjd var53;
      com.aspose.cells.b.a.b.zt var85;
      for(var52 = 0; var52 < var18.length; ++var52) {
         if (var18[var52] != 0.0D) {
            var53 = null;
            double var54 = 0.0D;
            if (var52 == 0) {
               if (var7 != null) {
                  var53 = var7;
               }
            } else {
               var53 = var14.b(var52 - 1);
            }

            if (var53 != null) {
               var79 = var53.o();
               var54 = (double)(var53.E() / 100.0F);
            }

            if (var79.a().f().e()) {
               var50 = (float)var1.a() * 0.175F;
            } else {
               var50 = (float)var1.a() * 0.2F;
            }

            var85 = a(var0, var1.z(), var13, var52 - 1, var81, var50, var51, var18[0]);
            var81 = var24 == 0.0D ? 0.0D : var18[var52] / var24;
            var28 = var20 == 0.0D ? 0.0D : var18[var52] / var20 * 2.0D * 180.0D;
            double var56 = (double)var4 * var54;
            double var58 = (var72 - var28 / 2.0D) % 360.0D;
            var77 = var58 * 3.141592653589793D / 180.0D;
            var87 = 0.0D;
            var88 = 0.0D;
            double var60;
            double[] var62;
            double[] var63;
            switch(var79.j()) {
            case 1:
               var60 = var56 + var31 * 0.5D;
               var87 = var60 * Math.cos(var77);
               var88 = var60 * Math.sin(var77);
               var87 -= (double)(var85.b() / 2.0F);
               var88 += (double)(var85.c() / 2.0F);
               break;
            case 3:
               var60 = var56 + var31 * 0.97D;
               var87 = var60 * Math.cos(var77);
               var88 = var60 * Math.sin(var77);
               var62 = new double[]{var87};
               var63 = new double[]{var88};
               b(var62, var63, var58, var85);
               var87 = var62[0];
               var88 = var63[0];
               break;
            default:
               var60 = var56 + var31 * 1.03D;
               var87 = var60 * Math.cos(var77);
               var88 = var60 * Math.sin(var77);
               var62 = new double[]{var87};
               var63 = new double[]{var88};
               a(var62, var63, var58, var85);
               var87 = var62[0];
               var88 = var63[0];
               if (var79.j() == 9) {
                  if (!var79.a().q()) {
                     var77 -= (double)var79.a().n() * 3.141592653589793D / 180.0D;
                     var77 %= 6.283185307179586D;
                  }

                  if (!var79.a().r()) {
                     var60 += var31 * (double)var79.a().o() / 500.0D;
                  }

                  var87 = var60 * Math.cos(var77);
                  var88 = var60 * Math.sin(var77);
                  var62 = new double[]{var87};
                  var63 = new double[]{var88};
                  a(var62, var63, var58, var85);
                  var87 = var62[0];
                  var88 = var63[0];
               }
            }

            var87 += (double)var8;
            var88 = (double)var9 - var88;
            com.aspose.cells.b.a.b.zq var91 = new com.aspose.cells.b.a.b.zq((float)var87, (float)var88, var85.b(), var85.c());
            a(var0, var1, var13, var52 - 1, var81, var91, var18[0]);
            var72 -= var28;
         }
      }

      var73 = (double)(var11 - var5);
      var79 = var3.w();

      for(var52 = 0; var52 < var19.length; ++var52) {
         if (var19[var52] != 0.0D) {
            var53 = null;
            int var89 = var18.length + var52 - 1;
            if (var89 < var3.D().getCount()) {
               var53 = var14.b(var89);
            }

            if (var53 != null) {
               var79 = var53.o();
            }

            if (var79.a().f().e()) {
               var50 = (float)var1.a() * 0.175F;
            } else {
               var50 = (float)var1.a() * 0.2F;
            }

            var75 = Math.abs(var19[var52]) / var22 * 2.0D * (double)var5;
            var87 = (double)var10;
            var88 = var73;
            var73 += var75;
            int var55 = var18.length - 1 + var52;
            var81 = var24 == 0.0D ? 0.0D : var19[var52] / var24;
            var85 = a(var0, var1.z(), var13, var55, var81, var50, var51, var18[0]);
            var77 = 0.0D;
            switch(var79.j()) {
            case 1:
               var87 += (double)(((float)var5 - var85.b()) / 2.0F);
               var88 += (var75 - (double)var85.c()) / 2.0D;
               break;
            case 3:
               var87 += (double)(((float)var5 - var85.b()) / 2.0F);
               break;
            default:
               var87 = var87 + (double)var5 + 1.0D;
               var88 += (var75 - (double)var85.c()) / 2.0D;
            }

            com.aspose.cells.b.a.b.zq var90 = new com.aspose.cells.b.a.b.zq((float)var87, (float)var88, var85.b(), var85.c());
            a(var0, var1, var13, var55, var81, var90, var18[0]);
         }
      }

   }

   private static void a(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, List var3) throws Exception {
      zbcp var4 = (zbcp)var3.get(0);
      int var5 = var4.U();
      int var6 = var4.V();
      double var7 = (double)var2.e() / 2.0D;
      double var9 = var7 * (double)var6 / 100.0D;
      double var11 = (var7 - var9) / (double)var3.size();
      double var13 = (double)var2.c() + (double)var2.e() / 2.0D;
      double var15 = (double)var2.d() + (double)var2.f() / 2.0D;
      com.aspose.cells.b.a.b.zq var17 = new com.aspose.cells.b.a.b.zq((float)var2.c(), (float)var2.d(), (float)var2.e(), (float)var2.f());
      var17.a(var17.f() + (float)(var7 - var9));
      var17.b(var17.g() + (float)(var7 - var9));
      var17.c(var17.h() - 2.0F * (float)(var7 - var9));
      var17.d(var17.i() - 2.0F * (float)(var7 - var9));
      double var18 = var9;

      int var22;
      zjf var25;
      double var28;
      double var38;
      double var58;
      for(int var20 = 0; var20 < var3.size(); ++var20) {
         zbcp var21 = (zbcp)var3.get(var20);
         var22 = var21.ai();
         double var23 = 0.0D;
         var25 = var21.D();

         for(int var26 = 0; var26 < var25.getCount(); ++var26) {
            var23 += Math.abs(var25.a(var26).v());
         }

         var58 = (double)((float)var5 - 90.0F);
         var28 = 0.0D;

         for(int var30 = 0; var30 < var25.getCount(); ++var30) {
            zjd var31 = var25.b(var30);
            if (var25.a(var30).v() != 0.0D) {
               var28 = a(var25.a(var30).v(), var23);
               if (var28 == 0.0D) {
                  var28 = 0.001D;
               }

               double var32;
               double var34;
               double var36;
               if (var20 == var3.size() - 1) {
                  var32 = (360.0D - var58 - var28 / 2.0D) * 3.141592653589793D / 180.0D;
                  var34 = var7 * (double)var31.E() / 100.0D;
                  var36 = var34 * Math.cos(var32);
                  var38 = var34 * Math.sin(var32);
                  var13 = (double)var2.c() + (double)var2.e() / 2.0D + var36;
                  var15 = (double)var2.d() + (double)var2.f() / 2.0D - var38;
                  var17.a((float)(var13 - var18));
                  var17.b((float)(var15 - var18));
                  var17.c((float)(2.0D * var18));
                  var17.d((float)(2.0D * var18));
               }

               com.aspose.cells.b.a.b.a.ze var42 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var43 = zbuk.b(var17);
               var42.a(var43, (float)var58, (float)var28);
               var32 = (360.0D - var58 - var28) * 3.141592653589793D / 180.0D;
               var34 = var18 * Math.cos(var32);
               var36 = var18 * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var62 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var34 = (var18 + var11) * Math.cos(var32);
               var36 = (var18 + var11) * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var39 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var42.a(var62, var39);
               com.aspose.cells.b.a.b.zq var44 = zbuk.b(var17);
               var44.a(var44.f() - (float)var11);
               var44.b(var44.g() - (float)var11);
               var44.c(var44.h() + 2.0F * (float)var11);
               var44.d(var44.i() + 2.0F * (float)var11);
               var42.a(var44, (float)(var58 + var28), -((float)var28));
               var32 = (360.0D - var58) * 3.141592653589793D / 180.0D;
               var34 = var18 * Math.cos(var32);
               var36 = var18 * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var40 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var34 = (var18 + var11) * Math.cos(var32);
               var36 = (var18 + var11) * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var41 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var42.a(var41, var40);
               var42.i();
               com.aspose.cells.b.a.b.zq var45 = com.aspose.cells.a.c.zn.a(var42);
               com.aspose.cells.b.a.b.zc var46 = zax.a(var31.i(), var45);

               try {
                  var0.a(var46, var42);
               } finally {
                  if (var46 != null) {
                     var46.f();
                  }

               }

               com.aspose.cells.b.a.b.zm var47 = zama.a(var31.k());

               try {
                  var0.a(var47, var42);
               } finally {
                  if (var47 != null) {
                     var47.r();
                  }

               }

               var31.a(new com.aspose.cells.b.a.b.zq(var44.f() + var44.h() / 2.0F, var44.g() + var44.i() / 2.0F, var44.h() / 2.0F, var44.i() / 2.0F));
               var31.d(var43.h() / 2.0F);
               var31.b((float)var58);
               var31.c((float)(var58 + var28));
               var58 += var28;
            }
         }

         var18 += var11;
         var17.a(var17.f() - (float)var11);
         var17.b(var17.g() - (float)var11);
         var17.c(var17.h() + 2.0F * (float)var11);
         var17.d(var17.i() + 2.0F * (float)var11);
      }

      float var55;
      if (var1.B().q()) {
         var55 = (float)(2.0D * var7);
      } else {
         var55 = (float)var1.a() * 0.2F;
      }

      float var56 = (float)var1.b();

      for(var22 = 0; var22 < var3.size(); ++var22) {
         zbcp var57 = (zbcp)var3.get(var22);
         int var24 = var57.ai();
         var25 = var57.D();
         var58 = (double)((float)var5 - 90.0F);
         var28 = 0.0D;
         double var59 = 0.0D;

         int var60;
         for(var60 = 0; var60 < var25.getCount(); ++var60) {
            var59 += Math.abs(var25.a(var60).v());
         }

         for(var60 = 0; var60 < var25.getCount(); ++var60) {
            zjd var33 = var25.b(var60);
            zpt var61 = var33.o();
            double var35 = var59 == 0.0D ? 0.0D : Math.abs(var33.v()) / var59;
            com.aspose.cells.b.a.b.zt var37 = a(var0, var1.z(), var24, var60, var35, var55, var56, 0.0D);
            var28 = a(var25.a(var60).v(), var59);
            double var63;
            double var64;
            double var65;
            if (var22 == var3.size() - 1) {
               var38 = (360.0D - var58 - var28 / 2.0D) * 3.141592653589793D / 180.0D;
               var63 = var7 * (double)var25.a(var60).E() / 100.0D;
               var64 = var63 * Math.cos(var38);
               var65 = var63 * Math.sin(var38);
               var13 = (double)var2.c() + (double)var2.e() / 2.0D + var64;
               var15 = (double)var2.d() + (double)var2.f() / 2.0D - var65;
            }

            var38 = (360.0D - var58 - var28 / 2.0D) * 3.141592653589793D / 180.0D;
            var63 = var9 + (double)var22 * var11 + var11 / 2.0D;
            var64 = var63 * Math.cos(var38);
            var65 = var63 * Math.sin(var38);
            if (var61.j() == 9) {
               if (!var61.a().q()) {
                  var38 -= (double)var61.a().n() * 3.141592653589793D / 180.0D;
                  var38 %= 6.283185307179586D;
               }

               if (!var61.a().r()) {
                  var63 += var63 * (double)var61.a().o() / 500.0D;
               }

               var64 = var63 * Math.cos(var38);
               var65 = var63 * Math.sin(var38);
            }

            var64 += var13;
            var65 = var15 - var65;
            var64 -= (double)(var37.b() / 2.0F);
            var65 -= (double)(var37.c() / 2.0F);
            com.aspose.cells.b.a.b.zq var66 = new com.aspose.cells.b.a.b.zq((float)var64, (float)var65, var37.b(), var37.c());
            a(var0, var1, var24, var60, var35, var66, 0.0D);
            var58 += var28;
         }
      }

   }

   private static void b(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, List var3) throws Exception {
      zbcp var4 = (zbcp)var3.get(0);
      int var5 = var4.U();
      int var6 = var4.V();
      double var7 = (double)var2.e() / 2.0D / (double)(1.0F + var4.ax() / 100.0F);
      double var9 = var7 * (double)var6 / 100.0D;
      double var11 = (var7 - var9) / (double)var3.size();
      double var13 = (double)var2.c() + (double)var2.e() / 2.0D;
      double var15 = (double)var2.d() + (double)var2.f() / 2.0D;
      double var17 = var9;
      com.aspose.cells.b.a.b.zq var19 = com.aspose.cells.b.a.b.zq.c();
      var19.a((float)(var13 - var9));
      var19.b((float)(var15 - var9));
      var19.c((float)(2.0D * var9));
      var19.d((float)(2.0D * var9));

      int var22;
      zjf var25;
      double var28;
      double var38;
      double var58;
      for(int var20 = 0; var20 < var3.size(); ++var20) {
         zbcp var21 = (zbcp)var3.get(var20);
         var22 = var21.ai();
         double var23 = 0.0D;
         var25 = var21.D();

         for(int var26 = 0; var26 < var25.getCount(); ++var26) {
            var23 += Math.abs(var25.a(var26).v());
         }

         var58 = (double)((float)var5 - 90.0F);
         var28 = 0.0D;

         for(int var30 = 0; var30 < var25.getCount(); ++var30) {
            zjd var31 = var25.b(var30);
            if (var25.a(var30).v() != 0.0D) {
               var28 = a(var25.a(var30).v(), var23);
               if (var28 == 0.0D) {
                  var28 = 0.001D;
               }

               double var32;
               double var34;
               double var36;
               if (var20 == var3.size() - 1) {
                  var32 = (360.0D - var58 - var28 / 2.0D) * 3.141592653589793D / 180.0D;
                  var34 = var7 * (double)var31.E() / 100.0D;
                  var36 = var34 * Math.cos(var32);
                  var38 = var34 * Math.sin(var32);
                  var13 = (double)var2.c() + (double)var2.e() / 2.0D + var36;
                  var15 = (double)var2.d() + (double)var2.f() / 2.0D - var38;
                  var19.a((float)(var13 - var17));
                  var19.b((float)(var15 - var17));
                  var19.c((float)(2.0D * var17));
                  var19.d((float)(2.0D * var17));
               }

               com.aspose.cells.b.a.b.a.ze var42 = new com.aspose.cells.b.a.b.a.ze();
               com.aspose.cells.b.a.b.zq var43 = zbuk.b(var19);
               var42.a(var43, (float)var58, (float)var28);
               var32 = (360.0D - var58 - var28) * 3.141592653589793D / 180.0D;
               var34 = var17 * Math.cos(var32);
               var36 = var17 * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var62 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var34 = (var17 + var11) * Math.cos(var32);
               var36 = (var17 + var11) * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var39 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var42.a(var62, var39);
               com.aspose.cells.b.a.b.zq var44 = zbuk.b(var19);
               var44.a(var44.f() - (float)var11);
               var44.b(var44.g() - (float)var11);
               var44.c(var44.h() + 2.0F * (float)var11);
               var44.d(var44.i() + 2.0F * (float)var11);
               var42.a(var44, (float)(var58 + var28), -((float)var28));
               var32 = (360.0D - var58) * 3.141592653589793D / 180.0D;
               var34 = var17 * Math.cos(var32);
               var36 = var17 * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var40 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var34 = (var17 + var11) * Math.cos(var32);
               var36 = (var17 + var11) * Math.sin(var32);
               var34 += var13;
               var36 = var15 - var36;
               com.aspose.cells.b.a.b.zo var41 = new com.aspose.cells.b.a.b.zo((float)var34, (float)var36);
               var42.a(var41, var40);
               var42.i();
               com.aspose.cells.b.a.b.zq var45 = com.aspose.cells.a.c.zn.a(var42);
               com.aspose.cells.b.a.b.zc var46 = zax.a(var31.i(), var45);

               try {
                  var0.a(var46, var42);
               } finally {
                  if (var46 != null) {
                     var46.f();
                  }

               }

               com.aspose.cells.b.a.b.zm var47 = zama.a(var31.k());

               try {
                  var0.a(var47, var42);
               } finally {
                  if (var47 != null) {
                     var47.r();
                  }

               }

               var31.a(new com.aspose.cells.b.a.b.zq(var44.f() + var44.h() / 2.0F, var44.g() + var44.i() / 2.0F, var44.h() / 2.0F, var44.i() / 2.0F));
               var31.d(var43.h() / 2.0F);
               var31.b((float)var58);
               var31.c((float)(var58 + var28));
               var58 += var28;
            }
         }

         var17 += var11;
         var19.a(var19.f() - (float)var11);
         var19.b(var19.g() - (float)var11);
         var19.c(var19.h() + 2.0F * (float)var11);
         var19.d(var19.i() + 2.0F * (float)var11);
      }

      var13 = (double)var2.c() + (double)var2.e() / 2.0D;
      var15 = (double)var2.d() + (double)var2.f() / 2.0D;
      float var55;
      if (var1.B().q()) {
         var55 = (float)(2.0D * var17);
      } else {
         var55 = (float)var1.a() * 0.2F;
      }

      float var56 = (float)var1.b();

      for(var22 = 0; var22 < var3.size(); ++var22) {
         zbcp var57 = (zbcp)var3.get(var22);
         int var24 = var57.ai();
         var25 = var57.D();
         var58 = (double)((float)var5 - 90.0F);
         var28 = 0.0D;
         double var59 = 0.0D;

         int var60;
         for(var60 = 0; var60 < var25.getCount(); ++var60) {
            var59 += Math.abs(var25.a(var60).v());
         }

         for(var60 = 0; var60 < var25.getCount(); ++var60) {
            zjd var33 = var25.b(var60);
            zpt var61 = var33.o();
            double var35 = var59 == 0.0D ? 0.0D : Math.abs(var33.v()) / var59;
            com.aspose.cells.b.a.b.zt var37 = a(var0, var1.z(), var24, var60, var35, var55, var56, 0.0D);
            var28 = a(var25.a(var60).v(), var59);
            double var63;
            double var64;
            double var65;
            if (var22 == var3.size() - 1) {
               var38 = (360.0D - var58 - var28 / 2.0D) * 3.141592653589793D / 180.0D;
               var63 = var7 * (double)var25.a(var60).E() / 100.0D;
               var64 = var63 * Math.cos(var38);
               var65 = var63 * Math.sin(var38);
               var13 = (double)var2.c() + (double)var2.e() / 2.0D + var64;
               var15 = (double)var2.d() + (double)var2.f() / 2.0D - var65;
            }

            var38 = var9 + (double)var22 * var11 + var11 / 2.0D;
            var63 = (360.0D - var58 - var28 / 2.0D) * 3.141592653589793D / 180.0D;
            var64 = var38 * Math.cos(var63);
            var65 = var38 * Math.sin(var63);
            if (var61.j() == 9) {
               if (!var61.a().q()) {
                  var63 -= (double)var61.a().n() * 3.141592653589793D / 180.0D;
                  var63 %= 6.283185307179586D;
               }

               if (!var61.a().r()) {
                  var38 += var38 * (double)var61.a().o() / 500.0D;
               }

               var64 = var38 * Math.cos(var63);
               var65 = var38 * Math.sin(var63);
            }

            var64 += var13;
            var65 = var15 - var65;
            var64 -= (double)(var37.b() / 2.0F);
            var65 -= (double)(var37.c() / 2.0F);
            com.aspose.cells.b.a.b.zq var66 = new com.aspose.cells.b.a.b.zq((float)var64, (float)var65, var37.b(), var37.c());
            a(var0, var1, var24, var60, var35, var66, 0.0D);
            var58 += var28;
         }
      }

   }

   static void a(zn var0, zif var1, com.aspose.cells.b.a.b.zp[] var2, zbcp var3) throws Exception {
      a(var0, var1, var2[0], var3);
      ArrayList var4;
      int var8;
      int var10;
      if (var3.v().B().q()) {
         float var5 = 0.0F;
         var5 = a(var2[0], var3);
         if (var5 > (float)var2[0].e() * 0.3F) {
            var5 = (float)var2[0].e() * 0.3F;
         }

         com.aspose.cells.b.a.b.zq var6 = new com.aspose.cells.b.a.b.zq();
         var6.a((float)var2[0].c() + var5);
         var6.c((float)var2[0].e() - 2.0F * var5);
         var6.b((float)var2[0].d() + var5);
         var6.d((float)var2[0].f() - 2.0F * var5);
         a(var0, var1, var6, var3);
         var4 = a(var3, var2[0]);
         a(var0, var1, var2[0], var3);
         float var7 = 0.0F;

         for(var8 = 0; var8 < var3.D().getCount(); ++var8) {
            boolean var9 = false;

            for(var10 = 0; var10 < var4.size(); ++var10) {
               ArrayList var11 = (ArrayList)var4.get(var10);

               for(int var12 = 0; var12 < var11.size(); ++var12) {
                  if ((Integer)var11.get(var12) == var8) {
                     var9 = true;
                     break;
                  }
               }

               if (var9) {
                  break;
               }
            }

            if (!var9) {
               zjd var20 = var3.D().b(var8);
               zpt var21 = var20.o();
               float[] var23;
               if (var21.j() != 0 && var21.j() != 4) {
                  if (var21.j() == 9) {
                     var23 = new float[]{var7};
                     a(var2[0], var21.a, var23);
                     var7 = var23[0];
                  }
               } else {
                  var23 = new float[]{var7};
                  a(var2[0], var21.b, var23);
                  var7 = var23[0];
               }
            }
         }

         if (var7 > (float)var2[0].e() * 0.3F) {
            var7 = (float)var2[0].e() * 0.3F;
         }

         var2[0].a(var2[0].c() + (int)var7);
         var2[0].c(var2[0].e() - (int)(var7 * 2.0F));
         var2[0].b(var2[0].d() + (int)var7);
         var2[0].d(var2[0].f() - (int)(var7 * 2.0F));
      }

      a(var0, var1, var2[0], var3);
      a(var3, (double)(var2[0].e() / 2));
      var4 = a(var3, var2[0]);

      for(int var13 = 0; var13 < 10 && var4.size() > 0; ++var13) {
         a(var3, (double)(var2[0].e() / 2), var4);
         ArrayList var14 = new ArrayList();

         for(int var15 = 0; var15 < var4.size(); ++var15) {
            ArrayList var16 = (ArrayList)var4.get(var15);
            ArrayList var18 = new ArrayList();

            for(var10 = 0; var10 < var16.size(); ++var10) {
               com.aspose.cells.b.a.a.ze.a(var18, var16.get(var10));
            }

            com.aspose.cells.b.a.a.ze.a(var14, (Object)var18);
         }

         ArrayList var17 = new ArrayList();
         a(var3, var4, var2[0], var2[0], var17);
         a(var3, (double)(var2[0].e() / 2), var14, var17);
         var4 = a(var3, var2[0]);
         var8 = 0;

         ArrayList var22;
         for(Iterator var19 = var4.iterator(); var19.hasNext(); var8 += var22.size()) {
            var22 = (ArrayList)var19.next();
         }

         if (var17.size() == var8) {
            break;
         }
      }

   }

   static float a(com.aspose.cells.b.a.b.zp var0, zbcp var1) {
      com.aspose.cells.b.a.b.zq var2 = new com.aspose.cells.b.a.b.zq((float)var0.c(), (float)var0.d(), (float)var0.e(), (float)var0.f());
      return a(var2, var1);
   }

   static float a(com.aspose.cells.b.a.b.zq var0, zbcp var1) {
      ArrayList var2 = a(var1, var0);
      float var3 = 0.0F;

      for(int var4 = 0; var4 < var1.D().getCount(); ++var4) {
         boolean var5 = false;

         for(int var6 = 0; var6 < var2.size(); ++var6) {
            ArrayList var7 = (ArrayList)var2.get(var6);

            for(int var8 = 0; var8 < var7.size(); ++var8) {
               if ((Integer)var7.get(var8) == var4) {
                  var5 = true;
                  break;
               }
            }

            if (var5) {
               break;
            }
         }

         if (!var5) {
            zjd var9 = var1.D().b(var4);
            zpt var10 = var9.o();
            float[] var11;
            if (var10.j() != 0 && var10.j() != 4) {
               if (var10.j() == 9) {
                  var11 = new float[]{var3};
                  a(var0, var10.a, var11);
                  var3 = var11[0];
               }
            } else {
               var11 = new float[]{var3};
               a(var0, var10.b, var11);
               var3 = var11[0];
            }
         }
      }

      return var3;
   }

   static void a(zn var0, zif var1, com.aspose.cells.b.a.b.zp var2, zbcp var3) throws Exception {
      com.aspose.cells.b.a.b.zq var4 = new com.aspose.cells.b.a.b.zq((float)var2.c(), (float)var2.d(), (float)var2.e(), (float)var2.f());
      a(var0, var1, var4, var3);
   }

   static void a(zn var0, zif var1, com.aspose.cells.b.a.b.zq var2, zbcp var3) throws Exception {
      int var4 = var3.ai();
      double var5 = 0.0D;
      zjf var7 = var3.D();

      for(int var8 = 0; var8 < var7.getCount(); ++var8) {
         var5 += Math.abs(var7.a(var8).v());
      }

      double var48 = (double)var2.f() + (double)var2.h() / 2.0D;
      double var10 = (double)var2.g() + (double)var2.i() / 2.0D;
      double var12 = (double)(90.0F - (float)var3.U());
      double var14 = 0.0D;

      for(int var16 = 0; var16 < var7.getCount(); ++var16) {
         zjd var17 = var7.b(var16);
         zpt var18 = var17.o();
         float var19;
         if (var18.a().f().e()) {
            var19 = (float)var1.a() * 0.175F;
         } else {
            var19 = (float)var1.a() * 0.2F;
         }

         float var20 = (float)var1.b();
         double var21 = var5 == 0.0D ? 0.0D : Math.abs(var7.a(var16).v()) / var5;
         com.aspose.cells.b.a.b.zt var23 = a(var0, var1.z(), var4, var16, var21, var19, var20, 0.0D);
         var14 = a(var7.a(var16).v(), var5);
         double var24 = (var12 - var14 / 2.0D) % 360.0D;
         double var26 = var24 * 3.141592653589793D / 180.0D;
         var18.g = var26;
         double var28 = (double)(var17.E() / 100.0F);
         double var30;
         if (var1.M() == 44) {
            var30 = (double)var2.h() / 2.0D;
         } else {
            var30 = (double)var2.h() / 2.0D / (1.0D + var28);
         }

         double var32 = var30 * var28;
         double var34 = (var28 + 1.0D) * var30 * Math.cos(var26);
         double var36 = (var28 + 1.0D) * var30 * Math.sin(var26);
         var18.d = new com.aspose.cells.b.a.b.zo((float)(var48 + var34), (float)(var10 - var36));
         double var40 = 0.0D;
         double var42 = 0.0D;
         double var38;
         double[] var45;
         switch(var18.j()) {
         case 1:
            var38 = var32 + var30 * 0.5D;
            var40 = var38 * Math.cos(var26);
            var42 = var38 * Math.sin(var26);
            var40 -= (double)(var23.b() / 2.0F);
            var42 += (double)(var23.c() / 2.0F);
            break;
         case 3:
            var38 = var32 + var30 * 0.97D;
            var40 = var38 * Math.cos(var26);
            var42 = var38 * Math.sin(var26);
            double[] var44 = new double[]{var40};
            var45 = new double[]{var42};
            b(var44, var45, var24, var23);
            var40 = var44[0];
            var42 = var45[0];
            break;
         default:
            var38 = var32 + var30 * 1.03D;
            var40 = var38 * Math.cos(var26);
            var42 = var38 * Math.sin(var26);
            new com.aspose.cells.b.a.b.zo((float)var40, (float)var42);
            var45 = new double[]{var40};
            double[] var46 = new double[]{var42};
            a(var45, var46, var24, var23);
            var40 = var45[0];
            var42 = var46[0];
            var18.a = new com.aspose.cells.b.a.b.zq((float)(var48 + var40), (float)(var10 - var42), var23.b(), var23.c());
            if (var18.j() == 9) {
               if (!var18.a().q()) {
                  var26 -= (double)var18.a().n() * 3.141592653589793D / 180.0D;
                  var26 %= 6.283185307179586D;
               }

               if (!var18.a().r()) {
                  var38 += var30 * (double)var18.a().o() / 500.0D;
               }

               var40 = var38 * Math.cos(var26);
               var42 = var38 * Math.sin(var26);
               var45 = new double[]{var40};
               var46 = new double[]{var42};
               a(var45, var46, var24, var23);
               var40 = var45[0];
               var42 = var46[0];
            }
         }

         var40 += var48;
         var42 = var10 - var42;
         com.aspose.cells.b.a.b.zq var47 = new com.aspose.cells.b.a.b.zq((float)var40, (float)var42, var23.b(), var23.c());
         var12 -= var14;
         var18.b = var47;
         var18.c = var47;
      }

   }

   private static void a(double[] var0, double[] var1, double var2, com.aspose.cells.b.a.b.zt var4) {
      double var5 = 17.5D;
      double var7 = 2.0D * var5;
      if (var2 <= -90.0D + var5 && var2 >= -90.0D - var5) {
         var0[0] -= (-90.0D + var5 - var2) * (double)var4.b() / var7;
      } else if (var2 <= -90.0D - var5 && var2 >= -270.0D + var5) {
         var0[0] -= (double)var4.b();
      } else if (var2 <= -270.0D + var5 && var2 >= -270.0D - var5) {
         var0[0] -= (var2 - (-270.0D - var5)) * (double)var4.b() / var7;
      } else if (var2 >= 90.0D - var5 && var2 <= 90.0D) {
         var0[0] -= (var2 - (90.0D - var5)) * (double)var4.b() / var7;
      }

      if (var2 <= -135.0D && var2 >= -225.0D) {
         var1[0] += (-135.0D - var2) * (double)var4.c() / 90.0D;
      } else if ((var2 > -225.0D || var2 < -315.0D) && (var2 > 90.0D || var2 < 45.0D)) {
         if (var2 < -315.0D && var2 >= -360.0D) {
            var1[0] += (var2 - -405.0D) * (double)var4.c() / 90.0D;
         } else if (var2 <= 45.0D && var2 >= -45.0D) {
            var1[0] += (var2 - -45.0D) * (double)var4.c() / 90.0D;
         }
      } else {
         var1[0] += (double)var4.c();
      }

   }

   private static void b(double[] var0, double[] var1, double var2, com.aspose.cells.b.a.b.zt var4) {
      if (var2 >= -112.5D && var2 <= -67.5D) {
         var0[0] -= (var2 - -112.5D) * (double)var4.b() / 45.0D;
      } else if (var2 >= -292.5D && var2 <= -247.5D) {
         var0[0] -= (-247.5D - var2) * (double)var4.b() / 45.0D;
      } else if (var2 > 67.5D && var2 <= 90.0D) {
         var0[0] -= (112.5D - var2) * (double)var4.b() / 45.0D;
      } else if (var2 >= -67.5D && var2 <= 67.5D || var2 <= -292.5D) {
         var0[0] -= (double)var4.b();
      }

      if (var2 <= 22.5D && var2 >= -22.5D) {
         var1[0] += (22.5D - var2) * (double)var4.c() / 45.0D;
      } else if (var2 <= -337.5D) {
         var1[0] += (-337.5D - var2) * (double)var4.c() / 45.0D;
      } else if (var2 >= -202.5D && var2 <= -157.5D) {
         var1[0] += (var2 - -202.5D) * (double)var4.c() / 45.0D;
      } else if (var2 >= -157.5D && var2 <= -22.5D) {
         var1[0] += (double)var4.c();
      }

   }

   private static void a(zbcp var0, double var1) {
      zjf var3 = var0.D();
      double var4 = var1 * (double)a;
      ArrayList var8 = new ArrayList();
      if (var0.Q()) {
         for(int var9 = 0; var9 < var3.getCount(); ++var9) {
            if (var3.b(var9).o().j() == 9) {
               com.aspose.cells.b.a.a.ze.a(var8, (Object)var9);
               zjd var10 = var3.b(var9);
               zpt var11 = var10.o();
               var11.h = true;
               if (var11.e.b()) {
                  if (!var11.z()) {
                     var11.f = new com.aspose.cells.b.a.b.zo(var11.b.f(), var11.b.g() + var11.b.i() / 2.0F);
                     var11.e = new com.aspose.cells.b.a.b.zo(var11.b.f() - (float)var4, var11.f.e());
                  } else {
                     var11.f = new com.aspose.cells.b.a.b.zo(var11.b.l(), var11.b.k() + var11.b.i() / 2.0F);
                     var11.e = new com.aspose.cells.b.a.b.zo(var11.b.l() + (float)var4, var11.f.e());
                  }
               }
            }
         }
      }

   }

   private static void a(zbcp var0, double var1, ArrayList var3) {
      double var4 = var1 * (double)a;
      double var6 = var4;

      for(int var8 = 0; var8 < var3.size(); ++var8) {
         ArrayList var9 = (ArrayList)var3.get(var8);

         for(int var10 = 0; var10 < var9.size(); ++var10) {
            zjd var11 = var0.D().b((Integer)var9.get(var10));
            zpt var12 = var11.o();
            var12.h = true;
            if (var12.e.b()) {
               if (!var12.z()) {
                  var12.b.a((float)((double)var12.d.d() + var4 + var6 * Math.abs(Math.cos(var12.g))));
               } else {
                  var12.b.a((float)((double)(var12.d.d() - var12.b.h()) - var4 - var6 * Math.abs(Math.cos(var12.g))));
               }

               if (var12.A()) {
                  var12.b.b((float)((double)var12.d.e() + var6 * Math.abs(Math.sin(var12.g)) - (double)(var12.b.i() / 2.0F)));
               } else {
                  var12.b.b((float)((double)var12.d.e() - var6 * Math.abs(Math.sin(var12.g)) - (double)(var12.b.i() / 2.0F)));
               }

               if (!var12.z()) {
                  var12.f = new com.aspose.cells.b.a.b.zo(var12.b.f(), var12.b.g() + var12.b.i() / 2.0F);
                  var12.e = new com.aspose.cells.b.a.b.zo(var12.b.f() - (float)var4, var12.f.e());
               } else {
                  var12.f = new com.aspose.cells.b.a.b.zo(var12.b.l(), var12.b.k() + var12.b.i() / 2.0F);
                  var12.e = new com.aspose.cells.b.a.b.zo(var12.b.l() + (float)var4, var12.f.e());
               }
            }
         }
      }

   }

   private static void a(zbcp var0, double var1, ArrayList var3, ArrayList var4) {
      double var5 = var1 * (double)a;

      for(int var9 = 0; var9 < var3.size(); ++var9) {
         ArrayList var10 = (ArrayList)var3.get(var9);

         for(int var11 = 0; var11 < var10.size(); ++var11) {
            int var12;
            for(var12 = 0; var12 < var4.size() && (Integer)var10.get(var11) != (Integer)var4.get(var12); ++var12) {
               ;
            }

            if (var12 == var4.size()) {
               zjd var13 = var0.D().b((Integer)var10.get(var11));
               zpt var14 = var13.o();
               if (!var14.z()) {
                  var14.f = new com.aspose.cells.b.a.b.zo(var14.b.f(), var14.b.g() + var14.b.i() / 2.0F);
                  var14.e = new com.aspose.cells.b.a.b.zo(var14.b.f() - (float)var5, var14.f.e());
               } else {
                  var14.f = new com.aspose.cells.b.a.b.zo(var14.b.l(), var14.b.k() + var14.b.i() / 2.0F);
                  var14.e = new com.aspose.cells.b.a.b.zo(var14.b.l() + (float)var5, var14.f.e());
               }
            }
         }
      }

   }

   private static void a(zbcp var0, ArrayList var1, com.aspose.cells.b.a.b.zp var2, com.aspose.cells.b.a.b.zp var3, ArrayList var4) {
      int var5;
      for(var5 = 0; var5 < var1.size(); ++var5) {
         ArrayList var6 = (ArrayList)var1.get(var5);
         b(var0, var6, var2, var3, var4);
      }

      for(var5 = 0; var5 < var4.size(); ++var5) {
         zpt var7 = var0.D().b((Integer)var4.get(var5)).o();
         var7.b = var7.c;
         var7.f = com.aspose.cells.b.a.b.zo.a();
         var7.e = com.aspose.cells.b.a.b.zo.a();
      }

   }

   private static void b(zbcp var0, ArrayList var1, com.aspose.cells.b.a.b.zp var2, com.aspose.cells.b.a.b.zp var3, ArrayList var4) {
      zif var5 = var0.v();
      com.aspose.cells.b.a.b.zp var6 = var5.c;
      if (var1.size() > 1) {
         float var7 = b;
         var7 = 2.0F;
         ArrayList var8 = new ArrayList();
         com.aspose.cells.b.a.a.ze.a(var8, var1.get(0));

         int var9;
         int var11;
         zpt var13;
         for(var9 = 1; var9 < var1.size(); ++var9) {
            int var10 = (Integer)var8.get(var8.size() - 1);
            var11 = (Integer)var1.get(var9);
            if (var11 == var10 + 1) {
               com.aspose.cells.b.a.a.ze.a(var8, var1.get(var9));
            } else {
               int var12;
               for(var12 = var10 + 1; var12 < var11; ++var12) {
                  var13 = var0.D().b(var12).o();
                  if (var13.b.h() != 0.0F && var13.b.i() != 0.0F) {
                     break;
                  }
               }

               if (var12 != var11) {
                  break;
               }

               com.aspose.cells.b.a.a.ze.a(var8, var1.get(var9));
            }
         }

         ArrayList var19 = new ArrayList();
         if (var9 == var1.size()) {
            com.aspose.cells.b.a.a.ze.a(var19, (Collection)var1);
         } else {
            for(var11 = var9; var11 < var1.size(); ++var11) {
               com.aspose.cells.b.a.a.ze.a(var19, var1.get(var11));
            }

            com.aspose.cells.b.a.a.ze.a(var19, (Collection)var8);
         }

         var11 = var19.size() / 2;
         if (var19.size() == 2) {
            var11 = 0;
         }

         int var14;
         zpt var20 = var0.D().b((Integer)var19.get(var11)).o();
         zpt var15;
         float var16;
         zpt var17;
         float var18;
         float var21;
         int var22;
         label438:
         switch(var20.B()) {
         case 1:
            var13 = var0.D().b((Integer)var19.get(var11)).o();
            if (var13.b.g() > (float)var6.d()) {
               if (var13.b.g() - var13.b.i() / 2.0F > (float)var6.d()) {
                  var13.b.b(var13.b.g() - var13.b.i() / 2.0F);
               } else {
                  var13.b.b((float)var6.d());
               }
            }

            if (var13.b.l() < (float)var6.i()) {
               if (var13.b.l() + var13.b.h() / 2.0F < (float)var6.i()) {
                  var13.b.a(var13.b.f() + var13.b.h() / 2.0F);
               } else {
                  var13.b.a((float)var6.i() - var13.b.h());
               }
            }

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.f() - var15.b.l());
               var15.b.a(var15.b.f() - (var16 + var7));
               var13 = var15;
               if (var15.b.g() > (float)var6.d()) {
                  if (var15.b.g() - var15.b.i() > (float)var6.d()) {
                     var15.b.b(var15.b.g() - var15.b.i());
                  } else {
                     var15.b.b((float)var6.d());
                  }
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();
            var14 = var11 + 1;

            while(true) {
               if (var14 >= var19.size()) {
                  break label438;
               }

               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.m() - var15.b.g());
               var15.b.b(var15.b.g() + var16 + var7);
               var13 = var15;
               if (var15.b.l() < (float)var6.i()) {
                  if (var15.b.l() + var15.b.h() / 2.0F < (float)var6.i()) {
                     var15.b.a(var15.b.f() + var15.b.h() / 2.0F);
                  } else {
                     var15.b.a((float)var6.i() - var15.b.h());
                  }
               }

               ++var14;
            }
         case 2:
            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = 0; var14 < var19.size(); ++var14) {
               var13 = var0.D().b((Integer)var19.get(var14)).o();
               if (var13.b.l() < (float)var6.i()) {
                  if (var13.b.l() + var13.b.h() / 2.0F < (float)var6.i()) {
                     var13.b.a(var13.b.f() + var13.b.h() / 2.0F);
                  } else {
                     var13.b.a((float)var6.i() - var13.b.h());
                  }
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.g() - var15.b.m());
               var15.b.b(var15.b.g() - (var16 + var7));
               var13 = var15;
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();
            var14 = var11 + 1;

            while(true) {
               if (var14 >= var19.size()) {
                  break label438;
               }

               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.m() - var15.b.g());
               var15.b.b(var15.b.g() + var16 + var7);
               var13 = var15;
               ++var14;
            }
         case 3:
            var13 = var0.D().b((Integer)var19.get(var11)).o();
            if (var13.b.m() < (float)var6.j()) {
               if (var13.b.m() + var13.b.i() / 2.0F < (float)var6.j()) {
                  var13.b.b(var13.b.g() + var13.b.i() / 2.0F);
               } else {
                  var13.b.b((float)var6.j() - var13.b.i());
               }
            }

            if (var13.b.l() < (float)var6.i()) {
               if (var13.b.l() + var13.b.h() / 2.0F < (float)var6.i()) {
                  var13.b.a(var13.b.f() + var13.b.h() / 2.0F);
               } else {
                  var13.b.a((float)var6.i() - var13.b.h());
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.g() - var15.b.m());
               var15.b.b(var15.b.g() - (var16 + var7));
               var13 = var15;
               if (var15.b.l() < (float)var6.i()) {
                  if (var15.b.l() + var15.b.h() / 2.0F < (float)var6.i()) {
                     var15.b.a(var15.b.f() + var15.b.h() / 2.0F);
                  } else {
                     var15.b.a((float)var6.i() - var15.b.h());
                  }
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();
            var14 = var11 + 1;

            while(true) {
               if (var14 >= var19.size()) {
                  break label438;
               }

               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.m() - var15.b.g());
               var15.b.b(var15.b.g() + var16 + var7);
               var13 = var15;
               ++var14;
            }
         case 4:
            var13 = var0.D().b((Integer)var19.get(var11)).o();
            if (var13.g > -1.5707963267948966D && var19.size() > 2) {
               var13.b.a(var13.b.f() - var13.b.h() / 2.0F);
            }

            if (var13.b.m() < (float)var6.j()) {
               if (var13.b.m() + var13.b.i() < (float)var6.j()) {
                  var13.b.b(var13.b.g() + var13.b.i());
               } else {
                  var13.b.b((float)var6.j() - var13.b.i());
               }
            }

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.l() - var15.b.f());
               var15.b.a(var15.b.f() + var16 + var7);
               var13 = var15;
            }

            if (var11 >= 2) {
               var13 = var0.D().b((Integer)var19.get(var19.size() - 1)).o();
               var21 = 0.0F;
               var15 = var0.D().b((Integer)var19.get(var11 - 1)).o();
               var21 = (float)var6.j() - var15.b.m();
               var21 /= (float)(var11 - 1);
               var13 = var0.D().b((Integer)var19.get(0)).o();

               for(var22 = 1; var22 < var11; ++var22) {
                  var17 = var0.D().b((Integer)var19.get(var22)).o();
                  var18 = Math.abs(var13.b.m() - var17.b.g());
                  if (var18 < var21) {
                     var17.b.b(var17.b.g() + var18 + var7);
                  } else if (var21 > 0.0F) {
                     var17.b.b(var17.b.g() + var21);
                  }

                  var13 = var17;
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = var11 + 1; var14 < var19.size(); ++var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.f() - var15.b.l());
               var15.b.a(var15.b.f() - (var16 + var7));
               var13 = var15;
            }

            if (var19.size() - (var11 + 1) >= 2) {
               var13 = var0.D().b((Integer)var19.get(var19.size() - 1)).o();
               var21 = 0.0F;
               var15 = var0.D().b((Integer)var19.get(var11 + 1)).o();
               var21 = (float)var6.j() - var15.b.m();
               var21 /= (float)(var11 - 1);

               for(var22 = var19.size() - 2; var22 > var11; --var22) {
                  var17 = var0.D().b((Integer)var19.get(var22)).o();
                  var18 = Math.abs(var13.b.m() - var17.b.g());
                  if (var18 < var21) {
                     var17.b.b(var17.b.g() + var18 + var7);
                  } else if (var21 > 0.0F) {
                     var17.b.b(var17.b.g() + var21);
                  }

                  var13 = var17;
               }
            }
            break;
         case 5:
            var13 = var0.D().b((Integer)var19.get(var11)).o();
            if (var13.b.m() < (float)var6.j()) {
               if (var13.b.m() + var13.b.i() / 2.0F < (float)var6.j()) {
                  var13.b.b(var13.b.g() + var13.b.i() / 2.0F);
               } else {
                  var13.b.b((float)var6.j() - var13.b.i());
               }
            }

            if (var13.b.f() > (float)var6.c()) {
               if (var13.b.f() + var13.b.h() / 2.0F > (float)var6.c()) {
                  var13.b.a(var13.b.f() - var13.b.h() / 2.0F);
               } else {
                  var13.b.a((float)var6.c() + var13.b.h());
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.l() - var15.b.f());
               var15.b.a(var15.b.f() + var16 + var7);
               var13 = var15;
               if (var15.b.m() < (float)var6.j()) {
                  if (var15.b.m() + var15.b.i() < (float)var6.j()) {
                     var15.b.b(var15.b.g() + var15.b.i());
                  } else {
                     var15.b.b((float)var6.j() - var15.b.i());
                  }
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();
            var14 = var11 + 1;

            while(true) {
               if (var14 >= var19.size()) {
                  break label438;
               }

               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.g() - var15.b.m());
               var15.b.b(var15.b.g() - (var16 + var7));
               var13 = var15;
               if (var15.b.f() > (float)var6.c()) {
                  if (var15.b.f() + var15.b.h() > (float)var6.c()) {
                     var15.b.a(var15.b.f() - var15.b.h());
                  } else {
                     var15.b.a((float)var6.c() + var15.b.h());
                  }
               }

               ++var14;
            }
         case 6:
            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = 0; var14 < var19.size(); ++var14) {
               var13 = var0.D().b((Integer)var19.get(var14)).o();
               if (var13.b.f() > (float)var6.c()) {
                  if (var13.b.f() + var13.b.h() / 2.0F > (float)var6.c()) {
                     var13.b.a(var13.b.f() - var13.b.h() / 2.0F);
                  } else {
                     var13.b.a((float)var6.c() + var13.b.h());
                  }
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = var11 + 1; var14 < var19.size(); ++var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.g() - var15.b.m());
               var15.b.b(var15.b.g() - (var16 + var7));
               var13 = var15;
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();
            var14 = var11 - 1;

            while(true) {
               if (var14 < 0) {
                  break label438;
               }

               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.m() - var15.b.g());
               var15.b.b(var15.b.g() + var16 + var7);
               var13 = var15;
               --var14;
            }
         case 7:
            var13 = var0.D().b((Integer)var19.get(var11)).o();
            if (var13.b.g() > (float)var6.d()) {
               if (var13.b.g() - var13.b.i() / 2.0F > (float)var6.d()) {
                  var13.b.b(var13.b.g() - var13.b.i() / 2.0F);
               } else {
                  var13.b.b((float)var6.d());
               }
            }

            if (var13.b.f() > (float)var6.c()) {
               if (var13.b.f() + var13.b.h() / 2.0F > (float)var6.c()) {
                  var13.b.a(var13.b.f() - var13.b.h() / 2.0F);
               } else {
                  var13.b.a((float)var6.c() + var13.b.h());
               }
            }

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.m() - var15.b.g());
               var15.b.b(var15.b.g() + var16 + var7);
               var13 = var15;
               if (var15.b.f() > (float)var6.c()) {
                  if (var15.b.f() + var15.b.h() > (float)var6.c()) {
                     var15.b.a(var15.b.f() - var15.b.h());
                  } else {
                     var15.b.a((float)var6.c() + var15.b.h());
                  }
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();
            var14 = var11 + 1;

            while(true) {
               if (var14 >= var19.size()) {
                  break label438;
               }

               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.l() - var15.b.f());
               var15.b.a(var15.b.f() + var16 + var7);
               var13 = var15;
               if (var15.b.g() > (float)var6.d()) {
                  if (var15.b.g() - var15.b.i() > (float)var6.d()) {
                     var15.b.b(var15.b.g() - var15.b.i());
                  } else {
                     var15.b.b((float)var6.d());
                  }
               }

               ++var14;
            }
         case 8:
            var13 = var0.D().b((Integer)var19.get(var11)).o();
            if (var13.g < 0.0D && var13.g > -4.71238898038469D && var19.size() > 2) {
               var13.b.a(var13.b.f() + var13.b.h() / 2.0F);
            }

            if (var13.b.g() > (float)var6.d()) {
               if (var13.b.g() - var13.b.i() > (float)var6.d()) {
                  var13.b.b(var13.b.g() - var13.b.i());
               } else {
                  var13.b.b((float)var6.d());
               }
            }

            for(var14 = var11 - 1; var14 >= 0; --var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.f() - var15.b.l());
               var15.b.a(var15.b.f() - (var16 + var7));
               var13 = var15;
            }

            if (var11 >= 2) {
               var13 = var0.D().b((Integer)var19.get(var19.size() - 1)).o();
               var21 = 0.0F;
               var15 = var0.D().b((Integer)var19.get(var11 - 1)).o();
               var21 = var15.b.g() - (float)var6.d();
               var21 /= (float)(var11 - 1);
               var13 = var0.D().b((Integer)var19.get(0)).o();

               for(var22 = 1; var22 < var11; ++var22) {
                  var17 = var0.D().b((Integer)var19.get(var22)).o();
                  var18 = Math.abs(var13.b.g() - var17.b.m());
                  if (var18 < var21) {
                     var17.b.b(var17.b.g() - (var18 + var7));
                  } else if (var21 > 0.0F) {
                     var17.b.b(var17.b.g() - var21);
                  }

                  var13 = var17;
               }
            }

            var13 = var0.D().b((Integer)var19.get(var11)).o();

            for(var14 = var11 + 1; var14 < var19.size(); ++var14) {
               var15 = var0.D().b((Integer)var19.get(var14)).o();
               var16 = Math.abs(var13.b.l() - var15.b.f());
               var15.b.a(var15.b.f() + var16 + var7);
               var13 = var15;
            }

            if (var19.size() - (var11 + 1) >= 2) {
               var13 = var0.D().b((Integer)var19.get(var19.size() - 1)).o();
               var21 = 0.0F;
               var15 = var0.D().b((Integer)var19.get(var11 + 1)).o();
               var21 = var15.b.g() - (float)var6.d();
               var21 /= (float)(var11 - 1);

               for(var22 = var19.size() - 2; var22 > var11; --var22) {
                  var17 = var0.D().b((Integer)var19.get(var22)).o();
                  var18 = Math.abs(var13.b.g() - var17.b.m());
                  if (var18 < var21) {
                     var17.b.b(var17.b.g() - (var18 + var7));
                  } else if (var21 > 0.0F) {
                     var17.b.b(var17.b.g() - var21);
                  }

                  var13 = var17;
               }
            }
         }

         for(var14 = 0; var14 < var19.size(); ++var14) {
            var13 = var0.D().b((Integer)var19.get(var14)).o();
            if (var13.b.f() < (float)var6.c()) {
               var13.b.a((float)var6.c());
            }

            if (var13.b.g() < (float)var6.d()) {
               var13.b.b((float)var6.d());
            }

            if (var13.b.l() > (float)var6.e()) {
               var13.b.a((float)var6.e() - var13.b.h());
            }

            if (var13.b.m() > (float)var6.f()) {
               var13.b.b((float)var6.f() - var13.b.i());
            }
         }

      }
   }

   private static boolean a(com.aspose.cells.b.a.b.zq var0, com.aspose.cells.b.a.b.zq var1, float var2) {
      var0 = new com.aspose.cells.b.a.b.zq(var0.f(), var0.g(), var0.h(), var0.i());
      var1 = new com.aspose.cells.b.a.b.zq(var1.f(), var1.g(), var1.h(), var1.i());
      if (var0.h() != 0.0F && var0.i() != 0.0F && var0.h() != 0.0F && var0.i() != 0.0F) {
         var0.a(var2 / 2.0F, var2 / 2.0F);
         var1.a(var2 / 2.0F, var2 / 2.0F);
         if ((var1.j() >= var0.j() && var1.j() <= var0.l() || var1.l() >= var0.j() && var1.l() <= var0.l()) && (var1.m() >= var0.k() && var1.m() <= var0.m() || var1.k() >= var0.k() && var1.k() <= var0.m())) {
            return true;
         } else {
            return (var0.j() >= var1.j() && var0.j() <= var1.l() || var0.l() >= var1.j() && var0.l() <= var1.l()) && (var0.m() >= var1.k() && var0.m() <= var1.m() || var0.k() >= var1.k() && var0.k() <= var1.m());
         }
      } else {
         return false;
      }
   }

   private static ArrayList a(zbcp var0, com.aspose.cells.b.a.b.zp var1) {
      com.aspose.cells.b.a.b.zq var2 = new com.aspose.cells.b.a.b.zq((float)var1.c(), (float)var1.d(), (float)var1.e(), (float)var1.f());
      return a(var0, var2);
   }

   private static ArrayList a(zbcp var0, com.aspose.cells.b.a.b.zq var1) {
      float var2 = b;
      zjf var3 = var0.D();
      ArrayList var4 = new ArrayList();

      int var5;
      for(var5 = 0; var5 < var3.getCount(); ++var5) {
         zpt var6 = var3.b(var5).o();
         if (var6.j() == 0 && var6.b.h() != 0.0F && var6.b.i() != 0.0F) {
            ArrayList var7 = new ArrayList();
            boolean var8 = false;

            for(int var9 = 0; var9 < var3.getCount(); ++var9) {
               zpt var10 = var3.b(var9).o();
               if (var10.j() == 0 && var10.b.h() != 0.0F && var10.b.i() != 0.0F && var5 != var9) {
                  if (var6.a().f().e()) {
                     var2 = b;
                  } else {
                     var2 = -2.0F;
                  }

                  if (a(var6.b, var10.b, var2)) {
                     var8 = true;
                     com.aspose.cells.b.a.a.ze.a(var7, (Object)var9);
                  }
               }
            }

            if (var8) {
               com.aspose.cells.b.a.a.ze.a(var7, (Object)var5);
               Collections.sort(var7);
               com.aspose.cells.b.a.a.ze.a(var4, (Object)var7);
            }
         }
      }

      for(var5 = 0; var5 < var4.size(); ++var5) {
         ArrayList var11 = (ArrayList)var4.get(var5);

         for(int var12 = var5 + 1; var12 < var4.size(); ++var12) {
            ArrayList var13 = (ArrayList)var4.get(var12);
            if (var11.size() <= var13.size()) {
               if (a(var11, var13)) {
                  var4.remove(var5);
                  --var5;
                  break;
               }
            } else if (a(var13, var11)) {
               var4.remove(var12);
               --var12;
            }
         }
      }

      return var4;
   }

   private static boolean a(ArrayList var0, ArrayList var1) {
      for(int var2 = 0; var2 < var0.size(); ++var2) {
         if (!var1.contains(var0.get(var2))) {
            return false;
         }
      }

      return true;
   }

   private static void a(com.aspose.cells.b.a.b.zp var0, com.aspose.cells.b.a.b.zq var1, float[] var2) {
      com.aspose.cells.b.a.b.zq var3 = new com.aspose.cells.b.a.b.zq((float)var0.c(), (float)var0.d(), (float)var0.e(), (float)var0.f());
      a(var3, var1, var2);
   }

   private static void a(com.aspose.cells.b.a.b.zq var0, com.aspose.cells.b.a.b.zq var1, float[] var2) {
      float var3;
      if (var1.j() < var0.j()) {
         var3 = var0.j() - var1.j();
         if (var3 > var2[0]) {
            var2[0] = var3;
         }
      }

      if (var1.k() < var0.k()) {
         var3 = var0.k() - var1.k();
         if (var3 > var2[0]) {
            var2[0] = var3;
         }
      }

      if (var1.l() > var0.l()) {
         var3 = var1.l() - var0.l();
         if (var3 > var2[0]) {
            var2[0] = var3;
         }
      }

      if (var1.m() > var0.m()) {
         var3 = var1.m() - var0.m();
         if (var3 > var2[0]) {
            var2[0] = var3;
         }
      }

   }

   private static double a(double var0, double var2) {
      return var2 == 0.0D ? 0.0D : Math.abs(var0) / var2 * 360.0D;
   }

   static com.aspose.cells.b.a.b.zq a(com.aspose.cells.b.a.b.zq var0, double var1, double var3) {
      com.aspose.cells.b.a.b.zm var5 = new com.aspose.cells.b.a.b.zm(Color.getBlack(), 1.0F);

      com.aspose.cells.b.a.b.zq var7;
      try {
         com.aspose.cells.b.a.b.a.ze var6 = new com.aspose.cells.b.a.b.a.ze();
         var6.b(var0.f(), var0.g(), var0.h(), var0.i(), (float)var1, (float)var3);
         var6.a(var5);
         var7 = com.aspose.cells.a.c.zn.a(var6);
      } finally {
         if (var5 != null) {
            var5.r();
         }

      }

      return var7;
   }

   static com.aspose.cells.b.a.b.zt a(zn var0, zbcr var1, int var2, int var3, double var4, float var6, float var7, double var8) {
      zbcp var10 = var1.c(var2);
      zif var11 = var10.v();
      zjd var12 = var10.D().b(var3);
      if (var12 == null) {
         var12 = var10.u();
      } else if (var12.w() == 3 && var12.a()) {
         return new com.aspose.cells.b.a.b.zt(0.0F, 0.0F);
      }

      int var13 = var10.af();
      zbo var14;
      ArrayList var15;
      if (var13 == 1) {
         var14 = var11.e();
         var15 = var11.z().c();
      } else {
         var14 = var11.g();
         var15 = var11.z().d();
      }

      zpt var16 = var12.o();
      boolean var17 = var16.r();
      boolean var18 = var16.q();
      String var19 = var16.f() ? "" : var16.p();
      String var20 = "".equals(var16.p()) ? "0%" : var16.p();
      String var21 = var10.i();
      String var22 = "";
      if (var3 == -1) {
         var22 = "Other";
      } else if (var3 < var14.l.size()) {
         var22 = zpv.a(var11.al(), var14.l.get(var3), var19, var17);
      }

      String var23;
      if (var18) {
         var23 = var3 >= 0 && var3 < var15.size() ? ((zfo)var15.get(var3)).c() : "";
         boolean var24 = var3 >= 0 && var3 < var15.size() ? ((zfo)var15.get(var3)).b() : false;
         if (var3 == -1) {
            var22 = "Other";
         } else if (var3 < var14.l.size()) {
            var22 = zpv.a(var11.al(), var14.l.get(var3), var23, var24);
         }
      }

      var23 = var3 == -1 ? zpv.a(var11.al(), var8, var19, var17) : zpv.a(var11.al(), var12.v(), var19, var17);
      if (var18) {
         var23 = var3 == -1 ? zpv.a(var11.al(), var8, var19, var17) : zpv.a(var11.al(), var12.v(), var12.z(), var12.A());
      }

      String var35 = zpv.a(var11.al(), var4, var20, var17);
      String var25 = var16.l();
      com.aspose.cells.b.a.b.zg var26 = var16.a().h();
      int var27 = var16.m();
      int var28 = var16.n();
      int var29 = var16.o();
      com.aspose.cells.b.a.b.zt var30 = new com.aspose.cells.b.a.b.zt((float)var16.x(), (float)var16.y());
      String var31 = "";
      if (var16.s() == null) {
         if (var16.h()) {
            var31 = var31 + var21;
         }

         if (var16.d()) {
            if (!"".equals(var31)) {
               var31 = var31 + var25;
            }

            var31 = var31 + var22;
         }

         if (var16.g()) {
            if (!"".equals(var31)) {
               var31 = var31 + var25;
            }

            var31 = var31 + var23;
         }

         if (var16.f()) {
            if (!"".equals(var31)) {
               var31 = var31 + var25;
            }

            var31 = var31 + var35;
         }
      } else {
         var31 = var16.s();
      }

      com.aspose.cells.b.a.b.zt var32 = new com.aspose.cells.b.a.b.zt(var6, var7);
      com.aspose.cells.b.a.b.zs var33 = zbsp.a(var0, var31, var27, var26, var32, var28, var29);
      if ("".equals(var31)) {
         return new com.aspose.cells.b.a.b.zt(0.0F, 0.0F);
      } else {
         com.aspose.cells.b.a.b.zt var34;
         if (var16.e()) {
            var34 = new com.aspose.cells.b.a.b.zt((float)var33.b() + var30.b(), (float)var33.c());
         } else {
            var34 = new com.aspose.cells.b.a.b.zt((float)var33.b(), (float)var33.c());
         }

         if (var16.e()) {
            var34.a(var34.b() + (float)(2 * zpv.a));
         }

         var34.b(var34.c() + (float)(2 * zpv.a));
         return var34;
      }
   }

   static void a(zn var0, zif var1, int var2, int var3, double var4, com.aspose.cells.b.a.b.zq var6, double var7) throws Exception {
      com.aspose.cells.b.a.b.zq[] var9 = new com.aspose.cells.b.a.b.zq[]{var6};
      var1.a(var9);
      var6 = var9[0];
      zbcp var10 = var1.z().c(var2);
      zjd var11 = var10.D().b(var3);
      if (var11 == null) {
         var11 = var10.u();
      } else if (var11.w() == 3 && var11.a()) {
         return;
      }

      int var12 = var10.af();
      zbo var13;
      ArrayList var14;
      if (var12 == 1) {
         var13 = var1.e();
         var14 = var1.z().c();
      } else {
         var13 = var1.g();
         var14 = var1.z().d();
      }

      zpt var15 = var11.o();
      boolean var16 = var15.r();
      boolean var17 = var15.q();
      String var18 = var15.f() ? "" : var15.p();
      String var19 = "".equals(var15.p()) ? "0%" : var15.p();
      String var20 = var10.i();
      String var21 = "";
      if (var3 == -1) {
         var21 = "Other";
      } else if (var3 < var13.l.size()) {
         var21 = zpv.a(var1.al(), var13.l.get(var3), var18, var16);
      }

      boolean var22 = false;
      String var23;
      boolean var24;
      if (var17) {
         var23 = var3 >= 0 && var3 < var14.size() ? ((zfo)var14.get(var3)).c() : "";
         var24 = var3 >= 0 && var3 < var14.size() ? ((zfo)var14.get(var3)).b() : false;
         if (var3 == -1) {
            var21 = "Other";
         } else if (var3 < var13.l.size()) {
            var21 = zpv.a(var1.al(), var13.l.get(var3), var23, var24);
         }

         if (var3 >= 0 && var3 < var13.l.size()) {
            var22 = zpv.a(var13.l.get(var3), var23);
         }
      }

      var23 = var3 == -1 ? zpv.a(var1.al(), var7, var18, var16) : zpv.a(var1.al(), var11.v(), var18, var16);
      var24 = false;
      if (var17) {
         var23 = var3 == -1 ? zpv.a(var1.al(), var7, var18, var16) : zpv.a(var1.al(), var11.v(), var11.z(), var11.A());
         if (var3 != -1) {
            var24 = zpv.a((Object)var11.v(), (String)var11.z());
         }
      }

      var4 += var15.i;
      String var25 = zpv.a(var1.al(), var4, var19, var16);
      String var26 = var15.l();
      com.aspose.cells.b.a.b.zg var27 = var15.a().h();
      Color var28 = var15.a().j();
      int var29 = var15.m();
      int var30 = var15.n();
      int var31 = var15.o();
      com.aspose.cells.b.a.b.zt var32 = new com.aspose.cells.b.a.b.zt((float)var15.x(), (float)var15.y());
      var15.a().b = new com.aspose.cells.b.a.b.zp((int)var6.f(), (int)var6.g(), (int)var6.h(), (int)var6.i());
      var15.a().a = var15.a().b;
      ziy.a(var0, var15.a());
      int var33 = var15.e() ? (int)(var6.f() + (float)zpv.a) : (int)var6.f();
      int var34 = (int)var6.g() + zpv.a;
      int var35 = var15.e() ? (int)(var6.h() - (float)(2 * zpv.a)) : (int)var6.h();
      int var36 = (int)var6.i() - 2 * zpv.a;
      if (var15.e()) {
         com.aspose.cells.b.a.b.zq var37 = new com.aspose.cells.b.a.b.zq(var6.f() + (float)zpv.a, var6.g() + (float)zpv.a, var32.b(), var32.c());
         zalc.a(var0, var37, var10, var3);
         var33 += (int)var32.b();
         var35 -= (int)var32.b();
      }

      String var39 = "";
      if (var15.s() == null) {
         if (var15.h()) {
            var39 = var39 + var20;
         }

         if (var15.d()) {
            if (!"".equals(var39)) {
               var39 = var39 + var26;
            }

            var39 = var39 + var21;
         }

         if (var15.g()) {
            if (!"".equals(var39)) {
               var39 = var39 + var26;
            }

            var39 = var39 + var23;
         }

         if (var15.f()) {
            if (!"".equals(var39)) {
               var39 = var39 + var26;
            }

            var39 = var39 + var25;
         }
      } else {
         var39 = var15.s();
      }

      if (!"".equals(var39)) {
         com.aspose.cells.b.a.b.zp var38 = new com.aspose.cells.b.a.b.zp(var33, var34, var35, var36);
         if (var22 || var24) {
            var28 = Color.getRed();
         }

         zpv.a(var0, var15, var38, var39, var29, var27, var28, var30, var31);
      }

   }

   public static void a(zjf var0) {
      double var1 = 0.0D;

      for(int var3 = 0; var3 < var0.getCount(); ++var3) {
         var1 += Math.abs(var0.a(var3).v());
      }

      if (var1 != 0.0D) {
         double var24 = 0.0D;
         double var5 = 1.0D;
         int var7 = -1;
         int var8 = -1;
         int var9 = 0;

         double var12;
         for(int var10 = 0; var10 < var0.getCount(); ++var10) {
            var0.b(var10);
            var12 = Math.abs(var0.a(var10).v());
            double var14 = var12 / var1 * 100.0D;
            var9 += (int)(var14 + 0.5D);
            double var16 = var14 - (double)((int)var14);
            if (var16 < 0.5D && var16 > var24) {
               var24 = var16;
               var7 = var10;
            }

            if (var16 > 0.5D && var16 < var5) {
               var5 = var16;
               var8 = var10;
            }
         }

         double var25 = 0.0D;
         var12 = 1.0D;
         int var26 = -1;
         int var15 = -1;
         if (var9 < 99 || var9 > 101) {
            for(int var27 = 0; var27 < var0.getCount(); ++var27) {
               var0.b(var27);
               double var18 = Math.abs(var0.a(var27).v());
               double var20 = var18 / var1 * 100.0D;
               var9 += (int)(var20 + 0.5D);
               double var22 = var20 - (double)((int)var20);
               if (var27 != var7 && var22 <= var24 && var22 > var25) {
                  var25 = var22;
                  var26 = var27;
               }

               if (var27 != var8 && var22 >= var5 && var22 < var12) {
                  var12 = var22;
                  var15 = var27;
               }
            }
         }

         zpt var17;
         zjd var28;
         String var29;
         if (var7 != -1 && var9 < 100) {
            var28 = var0.b(var7);
            var17 = var28.o();
            var29 = "";
            if (var17.q()) {
               var29 = "0%";
            } else {
               var29 = "".equals(var17.p()) ? "0%" : var17.p();
            }

            if ("0%".equals(var29)) {
               var17.i = (1.0D - var24) / 100.0D;
            }
         }

         if (var26 != -1 && var9 < 99) {
            var28 = var0.b(var26);
            var17 = var28.o();
            var29 = "";
            if (var17.q()) {
               var29 = "0%";
            } else {
               var29 = "".equals(var17.p()) ? "0%" : var17.p();
            }

            if ("0%".equals(var29)) {
               var17.i = (1.0D - var25) / 100.0D;
            }
         }

         if (var8 != -1 && var9 > 100) {
            var28 = var0.b(var8);
            var17 = var28.o();
            var29 = "";
            if (var17.q()) {
               var29 = "0%";
            } else {
               var29 = "".equals(var17.p()) ? "0%" : var17.p();
            }

            if ("0%".equals(var29)) {
               var17.i = (var5 - 1.0D) / 100.0D;
            }
         }

         if (var15 != -1 && var9 > 101) {
            var28 = var0.b(var15);
            var17 = var28.o();
            var29 = "";
            if (var17.q()) {
               var29 = "0%";
            } else {
               var29 = "".equals(var17.p()) ? "0%" : var17.p();
            }

            if ("0%".equals(var29)) {
               var17.i = (var12 - 1.0D) / 100.0D;
            }
         }

      }
   }
}
